summaryrefslogtreecommitdiff
path: root/trashapplet/src/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'trashapplet/src/Makefile.am')
-rw-r--r--trashapplet/src/Makefile.am16
1 files changed, 15 insertions, 1 deletions
diff --git a/trashapplet/src/Makefile.am b/trashapplet/src/Makefile.am
index 493c0cf5..194e44ad 100644
--- a/trashapplet/src/Makefile.am
+++ b/trashapplet/src/Makefile.am
@@ -1,11 +1,16 @@
AM_CPPFLAGS = -I$(top_srcdir) \
$(MATE_APPLETS4_CFLAGS) \
$(GIO_CFLAGS) \
- -DTRASH_MENU_UI_DIR=\""$(datadir)/mate/ui"\" \
+ -DGRESOURCE=\""/org/mate/mate-applets/trash/\"" \
${WARN_CFLAGS}
libexec_PROGRAMS = trashapplet
+BUILT_SOURCES = \
+ trashapplet-resources.c \
+ trashapplet-resources.h
+
+nodist_trashapplet_SOURCES = $(BUILT_SOURCES)
trashapplet_SOURCES = \
trashapplet.c \
trash-empty.h \
@@ -18,4 +23,13 @@ trashapplet_LDADD = \
$(GIO_LIBS) \
-lX11
+trashapplet-resources.c: ../trashapplet-resources.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir)/../ --generate-dependencies $(srcdir)/../trashapplet-resources.gresource.xml)
+ $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir)/../ --generate --c-name trashapplet $<
+
+trashapplet-resources.h: ../trashapplet-resources.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir)/../ --generate-dependencies $(srcdir)/../trashapplet-resources.gresource.xml)
+ $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir)/../ --generate --c-name trashapplet $<
+
+CLEANFILES = \
+ $(BUILT_SOURCES)
+
-include $(top_srcdir)/git.mk