summaryrefslogtreecommitdiff
path: root/gui/modules/Makefile.am
blob: 868d0db9913d1452ad572a1ab173e2bceb25b8b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
## Process this file with automake to produce makefile.in

INCLUDES = \
	-I.						\
	-I..						\
	-DGDMCONFDIR=\"${gdmconfdir}\"			\
	-DGNOMELOCALEDIR=\""$(datadir)/locale"\" 	\
	$(GUI_CFLAGS)

#
#	-DG_DISABLE_DEPRECATED				\
#	-DGDK_DISABLE_DEPRECATED			\
#	-DGDK_PIXBUF_DISABLE_DEPRECATED			\
#	-DGTK_DISABLE_DEPRECATED			\
#	-DGNOME_DISABLE_DEPRECATED			\
#

libkeymouselistener_la_SOURCES = \
	keymouselistener.c

libkeymouselistener_la_LDFLAGS =	\
	-rpath $(moduledir) -module -avoid-version \
	$(GUI_LIBS)	\
	$(X_LIBS)	\
	$(X_EXTRA_LIBS)

libdwellmouselistener_la_SOURCES = \
	dwellmouselistener.c

libdwellmouselistener_la_LDFLAGS =	\
	-rpath $(moduledir) -module -avoid-version \
	$(GUI_LIBS)	\
	$(X_LIBS)	\
	$(X_EXTRA_LIBS)

moduledir = $(libdir)/gtk-2.0/modules

module_LTLIBRARIES = 		\
	libkeymouselistener.la  \
	libdwellmouselistener.la

moduleconfdir = $(gdmconfdir)/modules

noinst_DATA = \
	AccessKeyMouseEvents \
	AccessDwellMouseEvents

EXTRA_DIST = \
	AccessKeyMouseEvents.in \
	AccessDwellMouseEvents.in

CLEANFILES = AccessKeyMouseEvents AccessDwellMouseEvents

AccessKeyMouseEvents: $(srcdir)/AccessKeyMouseEvents.in
	sed -e 's,[@]AT_BINDIR[@],$(AT_BINDIR),g' \
		<$(srcdir)/AccessKeyMouseEvents.in >AccessKeyMouseEvents

AccessDwellMouseEvents: $(srcdir)/AccessDwellMouseEvents.in
	sed -e 's,[@]AT_BINDIR[@],$(AT_BINDIR),g' \
		<$(srcdir)/AccessDwellMouseEvents.in >AccessDwellMouseEvents

uninstall-hook: 
	rm -f $(DESTDIR)$(moduleconfdir)/AccessKeyMouseEvents \
	$(DESTDIR)$(moduleconfdir)/factory-AccessKeyMouseEvents \
	$(DESTDIR)$(moduleconfdir)/AccessDwellMouseEvents \
	$(DESTDIR)$(moduleconfdir)/factory-AccessDwellMouseEvents

install-data-hook: AccessKeyMouseEvents AccessDwellMouseEvents
	if test '!' -d $(DESTDIR)$(moduleconfdir); then \
		$(mkinstalldirs) $(DESTDIR)$(moduleconfdir); \
		chmod 755 $(DESTDIR)$(moduleconfdir); \
	fi
	-if cmp -s $(DESTDIR)$(moduleconfdir)/AccessKeyMouseEvents $(DESTDIR)$(moduleconfdir)/factory-AccessKeyMouseEvents 2>&1 /dev/null ; then \
		cp -f $(DESTDIR)$(moduleconfdir)/AccessKeyMouseEvents $(DESTDIR)$(moduleconfdir)/AccessKeyMouseEvents.orig; \
		$(INSTALL_DATA) AccessKeyMouseEvents $(DESTDIR)$(moduleconfdir)/AccessKeyMouseEvents; \
	fi
	if test '!' -f $(DESTDIR)$(moduleconfdir)/AccessKeyMouseEvents; then \
		$(INSTALL_DATA) AccessKeyMouseEvents $(DESTDIR)$(moduleconfdir)/AccessKeyMouseEvents; \
	fi
	$(INSTALL_DATA) AccessKeyMouseEvents $(DESTDIR)$(moduleconfdir)/factory-AccessKeyMouseEvents
	-if cmp -s $(DESTDIR)$(moduleconfdir)/AccessDwellMouseEvents $(DESTDIR)$(moduleconfdir)/factory-AccessDwellMouseEvents 2>&1 /dev/null ; then \
		cp -f $(DESTDIR)$(moduleconfdir)/AccessDwellMouseEvents $(DESTDIR)$(moduleconfdir)/AccessDwellMouseEvents.orig; \
		$(INSTALL_DATA) AccessDwellMouseEvents $(DESTDIR)$(moduleconfdir)/AccessDwellMouseEvents; \
	fi
	if test '!' -f $(DESTDIR)$(moduleconfdir)/AccessDwellMouseEvents; then \
		$(INSTALL_DATA) AccessDwellMouseEvents $(DESTDIR)$(moduleconfdir)/AccessDwellMouseEvents; \
	fi
	$(INSTALL_DATA) AccessDwellMouseEvents $(DESTDIR)$(moduleconfdir)/factory-AccessDwellMouseEvents