1# This is used in MATECC_CAPPLETS_CFLAGS
2cappletname = mouse
3
4ui_files = mate-mouse-properties.ui
5
6bin_PROGRAMS = mate-mouse-properties
7
8mate_mouse_properties_LDADD = $(MATECC_CAPPLETS_LIBS)
9BUILT_SOURCES = mate-mouse-properties-resources.h mate-mouse-properties-resources.c
10nodist_mate_mouse_properties_SOURCES = \
11	$(BUILT_SOURCES)
12mate_mouse_properties_SOURCES =	\
13	mate-mouse-properties.c	\
14	msd-input-helper.c	\
15	msd-input-helper.h
16
17include $(top_srcdir)/gla11y.mk
18
19desktopdir = $(datadir)/applications
20Desktop_in_files = mate-settings-mouse.desktop.in
21desktop_DATA = $(Desktop_in_files:.desktop.in=.desktop)
22
23$(desktop_DATA): $(Desktop_in_files)
24if USE_NLS
25	$(AM_V_GEN) $(MSGFMT) --desktop --keyword= --keyword=Name --keyword=Comment --keyword=Keywords --template $< -d $(top_srcdir)/po -o $@
26else
27	$(AM_V_GEN) sed '/^# Translators/d' < $< > $@
28endif
29
30mate-mouse-properties-resources.h mate-mouse-properties-resources.c: org.mate.mcc.mouse.gresource.xml Makefile $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir $(srcdir) $(srcdir)/org.mate.mcc.mouse.gresource.xml)
31	$(AM_V_GEN) XMLLINT=$(XMLLINT) $(GLIB_COMPILE_RESOURCES) --target $@ --sourcedir $(srcdir) --generate --c-name mouse $<
32
33AM_CPPFLAGS = \
34	$(WARN_CFLAGS) \
35	$(MATECC_CAPPLETS_CFLAGS) \
36	-DMATECC_DATA_DIR="\"$(pkgdatadir)\""
37CLEANFILES = $(MATECC_CAPPLETS_CLEANFILES) $(desktop_DATA) $(BUILT_SOURCES)
38EXTRA_DIST = \
39	$(ui_files) \
40	double-click-on.svg \
41	double-click-off.svg \
42	double-click-maybe.svg \
43	$(Desktop_in_files) \
44	org.mate.mcc.mouse.gresource.xml \
45	ui-a11y.suppr
46
47-include $(top_srcdir)/git.mk
48