summaryrefslogtreecommitdiff
path: root/previewer/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'previewer/Makefile.am')
-rw-r--r--previewer/Makefile.am18
1 files changed, 15 insertions, 3 deletions
diff --git a/previewer/Makefile.am b/previewer/Makefile.am
index 462665ac..91241f30 100644
--- a/previewer/Makefile.am
+++ b/previewer/Makefile.am
@@ -5,11 +5,12 @@ man_MANS = atril-previewer.1
atril_previewer_SOURCES = \
ev-previewer.c \
+ ev-previewer-resources.c \
ev-previewer-window.h \
- ev-previewer-window.c
+ ev-previewer-window.c \
+ $(NULL)
atril_previewer_CPPFLAGS = \
- -DATRILDATADIR=\"$(pkgdatadir)\" \
-I$(top_srcdir) \
-I$(top_builddir) \
-I$(top_srcdir)/libdocument \
@@ -33,6 +34,17 @@ atril_previewer_LDADD = \
$(PREVIEWER_LIBS) \
$(WEBKIT_LIBS)
-EXTRA_DIST = $(man_MANS)
+ev-previewer-resources.c: previewer.gresource.xml Makefile $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir $(srcdir) $(srcdir)/previewer.gresource.xml)
+ $(AM_V_GEN) XMLLINT=$(XMLLINT) $(GLIB_COMPILE_RESOURCES) --target $@ --sourcedir $(srcdir) --generate-source --c-name ev_previewer $<
+
+EXTRA_DIST = \
+ previewer.gresource.xml \
+ previewer-ui.xml \
+ $(man_MANS) \
+ $(NULL)
+
+CLEANFILES = \
+ ev-previewer-resources.c \
+ $(NULL)
-include $(top_srcdir)/git.mk