summaryrefslogtreecommitdiff
path: root/shell/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'shell/Makefile.am')
-rw-r--r--shell/Makefile.am12
1 files changed, 11 insertions, 1 deletions
diff --git a/shell/Makefile.am b/shell/Makefile.am
index 1bf3cba4..ea8d91d8 100644
--- a/shell/Makefile.am
+++ b/shell/Makefile.am
@@ -65,6 +65,8 @@ atril_SOURCES= \
ev-properties-license.h \
ev-open-recent-action.c \
ev-open-recent-action.h \
+ ev-resources.c \
+ ev-resources.h \
ev-utils.c \
ev-utils.h \
ev-window.c \
@@ -115,7 +117,8 @@ atril_LDADD= \
$(top_builddir)/libmisc/libevmisc.la \
$(SHELL_LIBS)
-BUILT_SOURCES =
+BUILT_SOURCES = \
+ ev-resources.c
if ENABLE_DBUS
BUILT_SOURCES += \
@@ -150,9 +153,13 @@ atrild_LDADD= \
endif
EXTRA_DIST = \
+ atril-ui.xml \
+ atril-toolbar.xml \
+ atril.gresource.xml \
ev-gdbus.xml \
ev-daemon-gdbus.xml
+
ev-gdbus-generated.c ev-gdbus-generated.h: ev-gdbus.xml Makefile
$(AM_V_GEN) $(GDBUS_CODEGEN) \
--interface-prefix=org.mate.atril \
@@ -169,6 +176,9 @@ ev-daemon-gdbus-generated.c ev-daemon-gdbus-generated.h: ev-daemon-gdbus.xml Mak
--generate-c-code ev-daemon-gdbus-generated \
$<
+ev-resources.c: atril.gresource.xml Makefile $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir $(srcdir) $(srcdir)/atril.gresource.xml)
+ $(AM_V_GEN) XMLLINT=$(XMLLINT) $(GLIB_COMPILE_RESOURCES) --target $@ --sourcedir $(srcdir) --generate-source --c-name ev $<
+
DISTCLEANFILES = $(BUILT_SOURCES)
-include $(top_srcdir)/git.mk