File: Makefile.am

package info (click to toggle)
gnome-clocks 3.22.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,724 kB
  • ctags: 2,863
  • sloc: ansic: 25,872; sh: 4,670; makefile: 160; xml: 88; sed: 16
file content (167 lines) | stat: -rw-r--r-- 4,728 bytes parent folder | download
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}

SUBDIRS = help po

# msgfmt --desktop ignores the default keywords if custom keywords are
# specified, so we list all the keywords
MSGFMT_DESKTOP_OPTIONS = --keyword=X-GNOME-FullName --keyword=X-Geoclue-Reason --keyword=Name --keyword=GenericName --keyword=Comment --keyword=Icon --keyword=Keywords

# desktop file
%.desktop: %.desktop.in
	$(AM_V_GEN) $(MSGFMT) $(MSGFMT_DESKTOP_OPTIONS) --desktop --template $< -d $(top_srcdir)/po -o $@
applicationsdir = $(datadir)/applications
applications_DATA = data/org.gnome.clocks.desktop
dist_noinst_DATA = data/org.gnome.clocks.desktop.in

# DBus service file
servicedir = $(datadir)/dbus-1/services
service_DATA = data/org.gnome.clocks.service
dist_noinst_DATA += data/org.gnome.clocks.service.in

data/org.gnome.clocks.service: data/org.gnome.clocks.service.in Makefile
	$(AM_V_GEN) sed -e "s|\@bindir\@|$(bindir)|" $< > $@

# appdata file
appdatadir = $(datadir)/appdata
appdata_in_files = data/appdata/org.gnome.clocks.appdata.xml.in
appdata_DATA = $(appdata_in_files:.xml.in=.xml)
$(appdata_DATA): $(appdata_in_files)
	$(AM_V_GEN) $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@

# gnome-shell search provider
searchproviderdir = $(datadir)/gnome-shell/search-providers
searchprovider_DATA = data/org.gnome.clocks.search-provider.ini

# gsettings
gsettings_SCHEMAS = data/org.gnome.clocks.gschema.xml
@GSETTINGS_RULES@

# icons
icon16dir = $(datadir)/icons/hicolor/16x16/apps
icon16_DATA = data/icons/hicolor/16x16/apps/org.gnome.clocks.png
icon22dir = $(datadir)/icons/hicolor/22x22/apps
icon22_DATA = data/icons/hicolor/22x22/apps/org.gnome.clocks.png
icon32dir = $(datadir)/icons/hicolor/32x32/apps
icon32_DATA = data/icons/hicolor/32x32/apps/org.gnome.clocks.png
icon48dir = $(datadir)/icons/hicolor/48x48/apps
icon48_DATA = data/icons/hicolor/48x48/apps/org.gnome.clocks.png
icon256dir = $(datadir)/icons/hicolor/256x256/apps
icon256_DATA = data/icons/hicolor/256x256/apps/org.gnome.clocks.png
iconsymbolicdir = $(datadir)/icons/hicolor/symbolic/apps
iconsymbolic_DATA = data/icons/hicolor/symbolic/apps/org.gnome.clocks-symbolic.svg
icon_files = \
	$(icon16_DATA) \
	$(icon22_DATA) \
	$(icon32_DATA) \
	$(icon48_DATA) \
	$(icon256_DATA) \
	$(iconsymbolic_DATA) \
	data/icons/hicolor/org.gnome.clocks.svg


gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor

install-data-hook: update-icon-cache
uninstall-hook: update-icon-cache
update-icon-cache:
	@-if test -z "$(DESTDIR)"; then \
		echo "Updating Gtk icon cache."; \
		$(gtk_update_icon_cache); \
	else \
		echo "*** Icon cache not updated.  After (un)install, run this:"; \
		echo "***   $(gtk_update_icon_cache)"; \
	fi

# images
imagesdir = $(datadir)/gnome-clocks/images
images_DATA = \
	data/images/day.png \
	data/images/night.png

AM_CPPFLAGS = \
	-DGWEATHER_I_KNOW_THIS_IS_UNSTABLE \
	-DGNOME_DESKTOP_USE_UNSTABLE_API \
	-DGETTEXT_PACKAGE=\""$(GETTEXT_PACKAGE)"\" \
	-DGNOMELOCALEDIR=\""$(localedir)"\" \
	-DDATADIR=\""$(datadir)"\"

AM_VALAFLAGS = \
	--target-glib=2.38 \
	--pkg gio-2.0 \
	--pkg gtk+-3.0 \
	--pkg gweather-3.0 \
	--pkg gsound \
	--pkg geocode-glib-1.0 \
	--pkg Geoclue-2.0 \
	--gresources  $(top_srcdir)/data/gnome-clocks.gresource.xml

bin_PROGRAMS = gnome-clocks

BUILT_SOURCES = \
	src/resources.c

resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir=$(top_srcdir)/data $(top_srcdir)/data/gnome-clocks.gresource.xml)
src/resources.c: $(top_srcdir)/data/gnome-clocks.gresource.xml $(resource_files)
	$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(top_srcdir)/data --generate-source $<

VALA_SOURCES = \
	src/application.vala \
	src/window.vala \
	src/clock.vala \
	src/world.vala \
	src/alarm.vala \
	src/stopwatch.vala \
	src/timer.vala \
	src/utils.vala \
	src/widgets.vala \
	src/geocoding.vala \
	src/search-provider.vala \
	src/main.vala

gnome_clocks_SOURCES = \
	$(BUILT_SOURCES) \
	$(VALA_SOURCES) \
	src/cutils.c \
	src/gnome-desktop-3.0.vapi \
	src/config.vapi

AM_CFLAGS = \
	$(CLOCKS_CFLAGS) \
	-Wall \
	-Wno-unused-but-set-variable \
	-Wno-unused-variable

gnome_clocks_LDFLAGS = -export-dynamic
gnome_clocks_LDADD = \
	$(CLOCKS_LIBS) \
	$(LIBM)

EXTRA_DIST = \
	$(appdata_in_files) \
	$(searchprovider_DATA) \
	$(icon_files) \
	$(images_DATA) \
	$(resource_files) \
	data/appdata/org.gnome.clocks.appdata.xml \
	data/gnome-clocks.gresource.xml

CLEANFILES = \
	$(appdata_DATA) \
	$(applications_DATA) \
	$(service_DATA)

MAINTAINERCLEANFILES = \
	ABOUT-NLS \
	aclocal.m4 \
	config.guess \
	config.h.in \
	config.rpath \
	config.sub \
	depcomp \
	install-sh \
	ltmain.sh \
	missing \
	$(VALA_SOURCES:.vala=.c) \
	*.stamp

-include $(top_srcdir)/git.mk