summaryrefslogtreecommitdiff
path: root/data/Makefile.am
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2014-06-02 12:08:48 +0200
committerWim Taymans <wtaymans@redhat.com>2014-09-05 17:26:05 +0200
commit84afd44e5f57b0b61bed6806be092bf6ca7b7f86 (patch)
tree6b7ca8030d0444b1999b1c7c313dcede054adf16 /data/Makefile.am
Initial commitHEADmaster
Diffstat (limited to 'data/Makefile.am')
-rw-r--r--data/Makefile.am59
1 files changed, 59 insertions, 0 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
new file mode 100644
index 0000000..872aede
--- /dev/null
+++ b/data/Makefile.am
@@ -0,0 +1,59 @@
+# I chose to use recursive automake so I can use nobase_ and avoid
+# 5 different directory declarations
+SUBDIRS = icons
+
+app_resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/$(PACKAGE_NAME).Application.data.gresource.xml)
+$(PACKAGE_NAME).Application.data.gresource: $(PACKAGE_NAME).Application.data.gresource.xml $(app_resource_files)
+ $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) $<
+
+resourcedir = $(pkgdatadir)
+resource_DATA = $(PACKAGE_NAME).Application.data.gresource
+
+appsdir = $(datadir)/applications
+apps_DATA = $(PACKAGE_NAME).Application.desktop
+
+@INTLTOOL_DESKTOP_RULE@
+
+gsettings_SCHEMAS = $(PACKAGE_NAME).Application.gschema.xml
+
+@GSETTINGS_RULES@
+
+appdatadir = $(datadir)/appdata
+appdata_DATA = $(PACKAGE_NAME).Application.appdata.xml
+
+@INTLTOOL_XML_RULE@
+
+$(PACKAGE_NAME).Application.service: $(PACKAGE_NAME).Application.service.in
+ $(AM_V_GEN) sed \
+ -e "s|[@]PACKAGE_NAME@|$(PACKAGE_NAME)|g" \
+ -e "s|[@]pkgdatadir@|$(pkgdatadir)|g" \
+ -e "s|[@]pkglibdir@|$(pkglibdir)|g" \
+ $< > $@
+
+servicedir = $(datadir)/dbus-1/services
+service_DATA = $(PACKAGE_NAME).Application.service
+
+EXTRA_DIST = \
+ CREDITS \
+ $(PACKAGE_NAME).Application.desktop.in \
+ $(PACKAGE_NAME).Application.service.in \
+ $(PACKAGE_NAME).Application.data.gresource.xml \
+ $(gsettings_SCHEMAS) \
+ $(PACKAGE_NAME).Application.appdata.xml.in \
+ $(app_resource_files) \
+ $(NULL)
+
+CLEANFILES = \
+ $(PACKAGE_NAME).Application.service \
+ $(PACKAGE_NAME).Application.data.gresource \
+ $(PACKAGE_NAME).Application.appdata.xml \
+ $(apps_DATA) \
+ *.valid \
+ gschemas.compiled \
+ $(NULL)
+
+# For uninstalled use
+all-local:
+ $(GLIB_COMPILE_SCHEMAS) $(builddir)
+
+-include $(top_srcdir)/git.mk