summaryrefslogtreecommitdiff
path: root/data/Makefile.am
blob: 872aede8da8f6d9fe5c51a522c50cc193c08305a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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