summaryrefslogtreecommitdiff
path: root/geyes/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'geyes/Makefile.am')
-rw-r--r--geyes/Makefile.am45
1 files changed, 33 insertions, 12 deletions
diff --git a/geyes/Makefile.am b/geyes/Makefile.am
index e3c43bcd..514eee30 100644
--- a/geyes/Makefile.am
+++ b/geyes/Makefile.am
@@ -1,3 +1,5 @@
+NULL =
+
SUBDIRS = themes docs
AM_CPPFLAGS = \
@@ -11,15 +13,24 @@ AM_CPPFLAGS = \
libexec_PROGRAMS = mate-geyes-applet
+BUILT_SOURCES = geyes-resources.c geyes-resources.h
+nodist_mate_geyes_applet_SOURCES = $(BUILT_SOURCES)
mate_geyes_applet_SOURCES = \
- geyes.c \
- themes.c \
- geyes.h
+ geyes.c \
+ geyes.h \
+ themes.c \
+ $(NULL)
-mate_geyes_applet_LDADD = \
- $(MATE_APPLETS4_LIBS) \
+mate_geyes_applet_LDADD = \
+ $(MATE_APPLETS4_LIBS) \
-lm
+geyes-resources.c: geyes-resources.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/geyes-resources.gresource.xml)
+ $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate --c-name eyes $<
+
+geyes-resources.h: geyes-resources.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/geyes-resources.gresource.xml)
+ $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate --c-name eyes $<
+
appletdir = $(datadir)/mate-panel/applets
applet_in_files = org.mate.applets.GeyesApplet.mate-panel-applet.desktop.in
applet_DATA = $(applet_in_files:.mate-panel-applet.desktop.in=.mate-panel-applet)
@@ -60,15 +71,25 @@ icons = \
mate-eyes-applet.22.png \
mate-eyes-applet.16.png
-CLEANFILES = $(applet_DATA) $(applet_in_files) $(service_DATA) $(gsettings_SCHEMAS) *.gschema.valid
+CLEANFILES = \
+ $(BUILT_SOURCES) \
+ $(applet_DATA) \
+ $(applet_in_files) \
+ $(service_DATA) \
+ $(gsettings_SCHEMAS) \
+ *.gschema.valid \
+ $(NULL)
EXTRA_DIST = \
- README.themes \
- $(applet_in_files).in \
- $(service_in_files) \
- $(geyes_gschema_in_files) \
- $(ui_DATA) \
- $(icons)
+ geyes-resources.gresource.xml \
+ themes.ui \
+ README.themes \
+ $(applet_in_files).in \
+ $(service_in_files) \
+ $(geyes_gschema_in_files) \
+ $(ui_DATA) \
+ $(icons) \
+ $(NULL)
gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor