summaryrefslogtreecommitdiff
path: root/panels/mouse/Makefile.am
blob: aa86e0ab772e3801fcb56657ac65f0c2168acb55 (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
# This is used in PANEL_CFLAGS
cappletname = mouse

AM_CPPFLAGS = 						\
	$(PANEL_CFLAGS)					\
	$(MOUSE_PANEL_CFLAGS)				\
	-I$(top_srcdir)/panels/common			\
	-DGNOMELOCALEDIR="\"$(datadir)/locale\""	\
	$(NULL)

noinst_LTLIBRARIES = libmouse-properties.la

BUILT_SOURCES =			\
	cc-mouse-resources.c	\
	cc-mouse-resources.h

libmouse_properties_la_SOURCES =	\
	$(BUILT_SOURCES)		\
	cc-mouse-caps-helper.c		\
	cc-mouse-caps-helper.h		\
	cc-mouse-panel.c		\
	cc-mouse-panel.h		\
	gnome-mouse-properties.c	\
	gnome-mouse-properties.h	\
	gnome-mouse-test.c		\
	gnome-mouse-test.h

libmouse_properties_la_LIBADD = $(PANEL_LIBS) $(MOUSE_PANEL_LIBS) $(LIBM) $(top_builddir)/panels/common/libdevice.la

test_gnome_mouse_test_SOURCES =		\
	$(BUILT_SOURCES)		\
	gnome-mouse-test.c		\
	gnome-mouse-test.h		\
	test-gnome-mouse-test.c

noinst_PROGRAMS = test-gnome-mouse-test

test_gnome_mouse_test_CPPFLAGS = $(AM_CPPFLAGS)
test_gnome_mouse_test_LDADD = $(PANEL_LIBS) $(MOUSE_PANEL_LIBS) $(LIBM)

resource_files = $(shell glib-compile-resources --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/mouse.gresource.xml)
cc-mouse-resources.c: mouse.gresource.xml $(resource_files)
	$(AM_V_GEN) glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-source --c-name cc_mouse $<
cc-mouse-resources.h: mouse.gresource.xml $(resource_files)
	$(AM_V_GEN) glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-header --c-name cc_mouse $<

@INTLTOOL_DESKTOP_RULE@

desktopdir = $(datadir)/applications
Desktop_in_files = gnome-mouse-panel.desktop.in
desktop_DATA = $(Desktop_in_files:.desktop.in=.desktop)

CLEANFILES = $(Desktop_in_files) $(desktop_DATA) $(BUILT_SOURCES)
EXTRA_DIST = $(resource_files) mouse.gresource.xml

-include $(top_srcdir)/git.mk