gnome-control-center/panels/mouse/Makefile.am
Bastien Nocera 4ff7d6f671 mouse: Clean up resource files on "make clean"
The resource files are generated, so we'll need to clean them up.
2015-10-28 14:23:19 +01:00

56 lines
1.7 KiB
Makefile

# 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) $(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)
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