File: Makefile.am

package info (click to toggle)
gnome-weather 3.26.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 6,936 kB
  • sloc: sh: 470; makefile: 186; python: 125; xml: 99
file content (78 lines) | stat: -rw-r--r-- 2,835 bytes parent folder | download | duplicates (2)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# 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) $<
service_resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/$(PACKAGE_NAME).BackgroundService.data.gresource.xml)
$(PACKAGE_NAME).BackgroundService.data.gresource: $(PACKAGE_NAME).BackgroundService.data.gresource.xml $(service_resource_files)
	$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) $<

resourcedir = $(pkgdatadir)
resource_DATA = $(PACKAGE_NAME).Application.data.gresource $(PACKAGE_NAME).BackgroundService.data.gresource

appsdir = $(datadir)/applications
apps_DATA = $(PACKAGE_NAME).Application.desktop

@INTLTOOL_DESKTOP_RULE@

gsettings_SCHEMAS = $(PACKAGE_NAME).Application.gschema.xml

@GSETTINGS_RULES@

appstream_XML = $(PACKAGE_NAME).appdata.xml

@APPSTREAM_XML_RULES@
@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" \
		$< > $@

$(PACKAGE_NAME).BackgroundService.service: $(PACKAGE_NAME).BackgroundService.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 $(PACKAGE_NAME).BackgroundService.service

searchproviderdir = $(datadir)/gnome-shell/search-providers
dist_searchprovider_DATA = $(PACKAGE_NAME).Application.search-provider.ini

EXTRA_DIST = \
	CREDITS \
	$(PACKAGE_NAME).Application.desktop.in \
	$(PACKAGE_NAME).Application.service.in \
	$(PACKAGE_NAME).BackgroundService.service.in \
	$(PACKAGE_NAME).Application.data.gresource.xml \
	$(PACKAGE_NAME).BackgroundService.data.gresource.xml \
	$(gsettings_SCHEMAS) \
	$(PACKAGE_NAME).appdata.xml.in \
	$(app_resource_files) \
	$(service_resource_files) \
	$(NULL)

CLEANFILES = \
	$(PACKAGE_NAME).Application.service \
	$(PACKAGE_NAME).BackgroundService.service \
	$(PACKAGE_NAME).Application.data.gresource \
	$(PACKAGE_NAME).BackgroundService.data.gresource \
	$(PACKAGE_NAME).appdata.xml \
	$(PACKAGE_NAME).appdata.valid \
	$(apps_DATA) \
	*.valid \
	gschemas.compiled \
	$(NULL)

# For uninstalled use
all-local:
	$(GLIB_COMPILE_SCHEMAS) --targetdir=$(builddir) $(srcdir)

-include $(top_srcdir)/git.mk