forked from xfce-mirror/xfce4-screenshooter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
284 lines (238 loc) · 7.39 KB
/
Makefile.am
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
@SET_MAKE@
AUTOMAKE_OPTIONS = subdir-objects
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
SUBDIRS = po
bin_PROGRAMS = src/xfce4-screenshooter
distclean-local:
rm -rf *.cache *~
distuninstallcheck_listfiles = \
find . -type f -print | grep -v ./share/icons/hicolor/icon-theme.cache
dist-bz2: dist
zcat $(PACKAGE)-$(VERSION).tar.gz | bzip2 --best -c > $(PACKAGE)-$(VERSION).tar.bz2
distcheck-bz2: distcheck
zcat $(PACKAGE)-$(VERSION).tar.gz | bzip2 --best -c > $(PACKAGE)-$(VERSION).tar.bz2
# Convienence library for the application and the panel plugin
noinst_LTLIBRARIES = lib/libscreenshooter.la
lib_libscreenshooter_la_SOURCES = \
$(lib_libscreenshooter_built_sources) \
lib/libscreenshooter.h \
lib/screenshooter-actions.c lib/screenshooter-actions.h \
lib/screenshooter-capture.c lib/screenshooter-capture.h \
lib/screenshooter-custom-actions.c lib/screenshooter-custom-actions.h \
lib/screenshooter-dialogs.c lib/screenshooter-dialogs.h \
lib/screenshooter-global.h \
lib/screenshooter-utils.c lib/screenshooter-utils.h
lib_libscreenshooter_la_CFLAGS = \
-I$(top_srcdir) \
-I$(top_builddir)/lib \
@EXO_CFLAGS@ \
@GTK_CFLAGS@ \
@GDK_CFLAGS@ \
@GDKX11_CFLAGS@ \
@GLIB_CFLAGS@ \
@LIBXFCE4UTIL_CFLAGS@ \
@LIBXFCE4UI_CFLAGS@ \
@LIBXML_CFLAGS@ \
@SOUP2_CFLAGS@ \
@SOUP3_CFLAGS@ \
@LIBX11_CFLAGS@ \
@XFIXES_CFLAGS@ \
@XFCONF_CFLAGS@ \
-DPACKAGE_LOCALE_DIR=\"$(localedir)\"
lib_libscreenshooter_la_LIBADD = \
-lm \
@EXO_LIBS@ \
@GTK_LIBS@ \
@GDK_LIBS@ \
@GDKX11_LIBS@ \
@LIBXFCE4UTIL_LIBS@ \
@LIBXFCE4UI_LIBS@ \
@GLIB_LIBS@ \
@SOUP2_LIBS@ \
@SOUP3_LIBS@ \
@LIBXML_LIBS@ \
@LIBXEXT_LIBS@ \
@LIBX11_LIBS@ \
@LIBX11_LDFLAGS@ \
@XFCONF_LIBS@ \
@XFIXES_LIBS@
lib_libscreenshooter_built_sources = \
lib/screenshooter-marshal.c lib/screenshooter-marshal.h
#Autogenerated sources for the library
BUILT_SOURCES = $(lib_libscreenshooter_built_sources)
lib/screenshooter-marshal.h: lib/stamp-screenshooter-marshal.h
@true
lib/stamp-screenshooter-marshal.h: lib/screenshooter-marshal.list Makefile
$(AM_V_GEN) ( \
echo '/* this file is autogenerated -- do not edit */' >lib/screenshooter-marshal.h \
&& glib-genmarshal --prefix=_screenshooter_marshal --header $(top_srcdir)/lib/screenshooter-marshal.list >>lib/screenshooter-marshal.h \
&& echo timestamp >$@ \
)
lib/screenshooter-marshal.c: lib/screenshooter-marshal.list Makefile
$(AM_V_GEN) ( \
echo '/* this file is autogenerated -- do not edit */' >$@ \
&& echo '#include "screenshooter-marshal.h"' >>$@ \
&& glib-genmarshal --prefix=_screenshooter_marshal --body $(top_srcdir)/lib/screenshooter-marshal.list >>$@ \
)
# Main application
src_xfce4_screenshooter_CFLAGS = \
-I$(top_srcdir)/lib/ \
-I$(top_builddir)/lib \
@EXO_CFLAGS@ \
@GTK_CFLAGS@ \
@GDK_CFLAGS@ \
@GDKX11_CFLAGS@ \
@GLIB_CFLAGS@ \
@LIBXFCE4UTIL_CFLAGS@ \
@LIBXFCE4UI_CFLAGS@ \
@GTHREAD_CFLAGS@ \
@SOUP2_CFLAGS@ \
@SOUP3_CFLAGS@ \
@LIBXML_CFLAGS@ \
@LIBX11_CFLAGS@ \
-DPACKAGE_LOCALE_DIR=\"$(localedir)\"
src_xfce4_screenshooter_LDFLAGS = \
@EXO_LIBS@ \
@GTK_LIBS@ \
@GDK_LIBS@ \
@GDKX11_LIBS@ \
@GLIB_LIBS@ \
@GTHREAD_LIBS@ \
@SOUP2_LIBS@ \
@SOUP3_LIBS@ \
@LIBXML_LIBS@ \
@LIBX11_LIBS@ \
@LIBX11_LDFLAGS@ \
@LIBXFCE4UTIL_LIBS@ \
@LIBXFCE4UI_LIBS@
src_xfce4_screenshooter_LDADD = lib/libscreenshooter.la
src_xfce4_screenshooter_SOURCES = src/main.c
# Manual file for the application
if HAVE_HELP2MAN
xfce4-screenshooter.1: src/xfce4-screenshooter
$(HELP2MAN) -o $@ --no-info $<
endif
# Desktop file for the application
app_desktopdir = $(datadir)/applications
app_desktop_in_in_files = src/xfce4-screenshooter.desktop.in.in
app_desktop_in_files = $(app_desktop_in_in_files:.desktop.in.in=.desktop.in)
app_desktop_DATA = $(app_desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@
src/xfce4-screenshooter.desktop.in: src/xfce4-screenshooter.desktop.in.in
$(AM_V_GEN) ( \
$(MKDIR_P) $(dir $@); \
sed -e "s^@PLUGIN_PATH@^$(libexecdir)/applications^" \
$< > $@ \
)
# Panel plugin
plugindir = $(libdir)/xfce4/panel/plugins
plugin_LTLIBRARIES = panel-plugin/libscreenshooterplugin.la
panel_plugin_libscreenshooterplugin_la_CFLAGS = \
-DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
-I$(top_srcdir) \
-I$(top_srcdir)/lib/ \
-I$(top_builddir)/lib/ \
@EXO_CFLAGS@ \
@LIBXFCE4PANEL_CFLAGS@ \
@LIBXFCE4UI_CFLAGS@ \
@GTHREAD_CFLAGS@ \
@LIBXML_CFLAGS@ \
@LIBX11_CFLAGS@ \
@SOUP2_CFLAGS@ \
@SOUP3_CFLAGS@
panel_plugin_libscreenshooterplugin_la_LDFLAGS = \
-avoid-version \
-module \
-no-undefined \
-export-symbols-regex '^xfce_panel_module_(preinit|init|construct)' \
$(PLATFORM_LDFLAGS)
panel_plugin_libscreenshooterplugin_la_LIBADD = \
@EXO_LIBS@ \
@LIBXFCE4PANEL_LIBS@ \
@GTHREAD_LIBS@ \
@SOUP2_LIBS@ \
@SOUP3_LIBS@ \
@LIBXML_LIBS@ \
@LIBX11_LIBS@ \
@LIBX11_LDFLAGS@ \
@LIBXFCE4UI_LIBS@ \
lib/libscreenshooter.la
panel_plugin_libscreenshooterplugin_la_SOURCES = \
panel-plugin/screenshooter-plugin.c
# Panel plugin desktop file
panel_desktopdir = $(datadir)/xfce4/panel/plugins
panel_desktop_in_files = panel-plugin/screenshooter.desktop.in
panel_desktop_DATA = $(panel_desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@
# appdata file for the application
@INTLTOOL_XML_RULE@
appdatadir = $(datadir)/metainfo
appdata_DATA = $(appdata_in_files:.xml.in=.xml)
appdata_in_files = src/xfce4-screenshooter.appdata.xml.in
# App icons
# 16x16 icons
16iconsdir = $(datadir)/icons/hicolor/16x16/apps
16icons_DATA = icons/16x16/org.xfce.screenshooter.png
# 24x24 icons
24iconsdir = $(datadir)/icons/hicolor/24x24/apps
24icons_DATA = icons/24x24/org.xfce.screenshooter.png
# 32x32 icons
32iconsdir = $(datadir)/icons/hicolor/32x32/apps
32icons_DATA = icons/32x32/org.xfce.screenshooter.png
# 48x48 icons
48iconsdir = $(datadir)/icons/hicolor/48x48/apps
48icons_DATA = icons/48x48/org.xfce.screenshooter.png
# 128x128 icons
128iconsdir = $(datadir)/icons/hicolor/128x128/apps
128icons_DATA = icons/128x128/org.xfce.screenshooter.png
# Scalable icons
scaliconsdir = $(datadir)/icons/hicolor/scalable/apps
scalicons_DATA = icons/scalable/org.xfce.screenshooter.svg
# Update the icon cache
gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
install-data-hook:
@-if test -z "$(DESTDIR)"; then \
echo "Updating Gtk icon cache."; \
$(gtk_update_icon_cache); \
else \
echo "*** Icon cache not updated. Remember to run:"; \
echo "***"; \
echo "*** $(gtk_update_icon_cache)"; \
echo "***"; \
fi
.PHONY: ChangeLog
ChangeLog: Makefile
(GIT_DIR=$(top_srcdir)/.git git log > .changelog.tmp \
&& mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) \
|| (touch ChangeLog; echo 'Git directory not found: installing possibly empty changelog.' >&2)
dist-hook: ChangeLog
# Extra dist and distclean rules
EXTRA_DIST = \
README.md \
intltool-extract.in \
intltool-merge.in \
intltool-update.in \
lib/screenshooter-marshal.list \
$(app_desktop_in_in_files) \
$(panel_desktop_in_files) \
$(16icons_DATA) \
$(24icons_DATA) \
$(32icons_DATA) \
$(48icons_DATA) \
$(128icons_DATA) \
$(scalicons_DATA) \
$(appdata_in_files)
DISTCLEANFILES = \
intltool-extract \
intltool-merge \
intltool-update \
stamp-screenshooter-marshal.h \
$(lib_libscreenshooter_built_sources) \
lib/stamp-screenshooter-marshal.h \
$(app_desktop_DATA) $(app_desktop_in_files) \
$(panel_desktop_DATA) \
$(appdata_DATA) \
xfce4-screenshooter.1 \
po/.intltool-merge-cache.lock
# Man pages
dist_man_MANS = xfce4-screenshooter.1