1@SET_MAKE@ 2 3AUTOMAKE_OPTIONS = subdir-objects 4ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} 5 6SUBDIRS = po 7 8bin_PROGRAMS = src/xfce4-screenshooter 9 10distclean-local: 11 rm -rf *.cache *~ 12 13distuninstallcheck_listfiles = \ 14 find . -type f -print | grep -v ./share/icons/hicolor/icon-theme.cache 15 16dist-bz2: dist 17 zcat $(PACKAGE)-$(VERSION).tar.gz | bzip2 --best -c > $(PACKAGE)-$(VERSION).tar.bz2 18 19distcheck-bz2: distcheck 20 zcat $(PACKAGE)-$(VERSION).tar.gz | bzip2 --best -c > $(PACKAGE)-$(VERSION).tar.bz2 21 22# Convienence library for the application and the panel plugin 23noinst_LTLIBRARIES = lib/libscreenshooter.la 24 25lib_libscreenshooter_la_SOURCES = \ 26 $(lib_libscreenshooter_built_sources) \ 27 lib/libscreenshooter.h \ 28 lib/screenshooter-actions.c lib/screenshooter-actions.h \ 29 lib/screenshooter-capture.c lib/screenshooter-capture.h \ 30 lib/screenshooter-dialogs.c lib/screenshooter-dialogs.h \ 31 lib/screenshooter-global.h \ 32 lib/screenshooter-job.c lib/screenshooter-job.h \ 33 lib/screenshooter-job-callbacks.c lib/screenshooter-job-callbacks.h \ 34 lib/screenshooter-simple-job.c lib/screenshooter-simple-job.h \ 35 lib/screenshooter-utils.c lib/screenshooter-utils.h \ 36 lib/screenshooter-imgur.c lib/screenshooter-imgur.h \ 37 lib/screenshooter-imgur-dialog.c lib/screenshooter-imgur-dialog.h 38 39lib_libscreenshooter_la_CFLAGS = \ 40 -I$(top_srcdir) \ 41 -I$(top_builddir)/lib \ 42 @EXO_CFLAGS@ \ 43 @GTK_CFLAGS@ \ 44 @GDK_CFLAGS@ \ 45 @GDKX11_CFLAGS@ \ 46 @GLIB_CFLAGS@ \ 47 @LIBXFCE4UTIL_CFLAGS@ \ 48 @LIBXFCE4UI_CFLAGS@ \ 49 @LIBXML_CFLAGS@ \ 50 @SOUP_CFLAGS@ \ 51 @LIBX11_CFLAGS@ \ 52 @XFIXES_CFLAGS@ \ 53 -DPACKAGE_LOCALE_DIR=\"$(localedir)\" 54 55lib_libscreenshooter_la_LIBADD = \ 56 -lm \ 57 @EXO_LIBS@ \ 58 @GTK_LIBS@ \ 59 @GDK_LIBS@ \ 60 @GDKX11_LIBS@ \ 61 @LIBXFCE4UTIL_LIBS@ \ 62 @LIBXFCE4UI_LIBS@ \ 63 @GLIB_LIBS@ \ 64 @SOUP_LIBS@ \ 65 @LIBXML_LIBS@ \ 66 @LIBXEXT_LIBS@ \ 67 @LIBX11_LIBS@ \ 68 @LIBX11_LDFLAGS@ \ 69 @XFIXES_LIBS@ 70 71lib_libscreenshooter_built_sources = \ 72 lib/screenshooter-marshal.c lib/screenshooter-marshal.h \ 73 lib/screenshooter-imgur-dialog_ui.h 74 75#Autogenerated sources for the library 76BUILT_SOURCES = $(lib_libscreenshooter_built_sources) 77 78lib/screenshooter-marshal.h: lib/stamp-screenshooter-marshal.h 79 @true 80lib/stamp-screenshooter-marshal.h: lib/screenshooter-marshal.list Makefile 81 $(AM_V_GEN) ( \ 82 echo '/* this file is autogenerated -- do not edit */' >lib/screenshooter-marshal.h \ 83 && glib-genmarshal --prefix=_screenshooter_marshal --header $(top_srcdir)/lib/screenshooter-marshal.list >>lib/screenshooter-marshal.h \ 84 && echo timestamp >$@ \ 85 ) 86 87lib/screenshooter-marshal.c: lib/screenshooter-marshal.list Makefile 88 $(AM_V_GEN) ( \ 89 echo '/* this file is autogenerated -- do not edit */' >$@ \ 90 && echo '#include "screenshooter-marshal.h"' >>$@ \ 91 && glib-genmarshal --prefix=_screenshooter_marshal --body $(top_srcdir)/lib/screenshooter-marshal.list >>$@ \ 92 ) 93 94lib/screenshooter-imgur-dialog_ui.h: lib/screenshooter-imgur-dialog.ui 95 $(AM_V_GEN) xdt-csource --static --strip-comments --strip-content --name=screenshooter_imgur_dialog_ui $< >$@ 96 97# Main application 98src_xfce4_screenshooter_CFLAGS = \ 99 -I$(top_srcdir)/lib/ \ 100 -I$(top_builddir)/lib \ 101 @EXO_CFLAGS@ \ 102 @GTK_CFLAGS@ \ 103 @GDK_CFLAGS@ \ 104 @GDKX11_CFLAGS@ \ 105 @GLIB_CFLAGS@ \ 106 @LIBXFCE4UTIL_CFLAGS@ \ 107 @LIBXFCE4UI_CFLAGS@ \ 108 @GTHREAD_CFLAGS@ \ 109 @SOUP_CFLAGS@ \ 110 @LIBXML_CFLAGS@ \ 111 @LIBX11_CFLAGS@ \ 112 -DPACKAGE_LOCALE_DIR=\"$(localedir)\" 113 114src_xfce4_screenshooter_LDFLAGS = \ 115 @EXO_LIBS@ \ 116 @GTK_LIBS@ \ 117 @GDK_LIBS@ \ 118 @GDKX11_LIBS@ \ 119 @GLIB_LIBS@ \ 120 @GTHREAD_LIBS@ \ 121 @SOUP_LIBS@ \ 122 @LIBXML_LIBS@ \ 123 @LIBX11_LIBS@ \ 124 @LIBX11_LDFLAGS@ \ 125 @LIBXFCE4UTIL_LIBS@ \ 126 @LIBXFCE4UI_LIBS@ 127 128src_xfce4_screenshooter_LDADD = lib/libscreenshooter.la 129 130src_xfce4_screenshooter_SOURCES = src/main.c 131 132# Manual file for the application 133if HAVE_HELP2MAN 134xfce4-screenshooter.1: src/xfce4-screenshooter 135 $(HELP2MAN) -o $@ --no-info $< 136endif 137 138# Desktop file for the application 139app_desktopdir = $(datadir)/applications 140app_desktop_in_in_files = src/xfce4-screenshooter.desktop.in.in 141app_desktop_in_files = $(app_desktop_in_in_files:.desktop.in.in=.desktop.in) 142app_desktop_DATA = $(app_desktop_in_files:.desktop.in=.desktop) 143@INTLTOOL_DESKTOP_RULE@ 144 145src/xfce4-screenshooter.desktop.in: src/xfce4-screenshooter.desktop.in.in 146 $(AM_V_GEN) ( \ 147 $(MKDIR_P) $(dir $@); \ 148 sed -e "s^@PLUGIN_PATH@^$(libexecdir)/applications^" \ 149 $< > $@ \ 150 ) 151 152# Panel plugin 153plugindir = $(libdir)/xfce4/panel/plugins 154plugin_LTLIBRARIES = panel-plugin/libscreenshooterplugin.la 155 156panel_plugin_libscreenshooterplugin_la_CFLAGS = \ 157 -DPACKAGE_LOCALE_DIR=\"$(localedir)\" \ 158 -I$(top_srcdir) \ 159 -I$(top_srcdir)/lib/ \ 160 -I$(top_builddir)/lib/ \ 161 @EXO_CFLAGS@ \ 162 @LIBXFCE4PANEL_CFLAGS@ \ 163 @LIBXFCE4UI_CFLAGS@ \ 164 @GTHREAD_CFLAGS@ \ 165 @LIBXML_CFLAGS@ \ 166 @LIBX11_CFLAGS@ \ 167 @SOUP_CFLAGS@ 168 169panel_plugin_libscreenshooterplugin_la_LDFLAGS = \ 170 -avoid-version \ 171 -module \ 172 -no-undefined \ 173 -export-symbols-regex '^xfce_panel_module_(preinit|init|construct)' \ 174 $(PLATFORM_LDFLAGS) 175 176panel_plugin_libscreenshooterplugin_la_LIBADD = \ 177 @EXO_LIBS@ \ 178 @LIBXFCE4PANEL_LIBS@ \ 179 @GTHREAD_LIBS@ \ 180 @SOUP_LIBS@ \ 181 @LIBXML_LIBS@ \ 182 @LIBX11_LIBS@ \ 183 @LIBX11_LDFLAGS@ \ 184 @LIBXFCE4UI_LIBS@ \ 185 lib/libscreenshooter.la 186 187panel_plugin_libscreenshooterplugin_la_SOURCES = \ 188 panel-plugin/screenshooter-plugin.c 189 190# Panel plugin desktop file 191panel_desktopdir = $(datadir)/xfce4/panel/plugins 192panel_desktop_in_files = panel-plugin/screenshooter.desktop.in 193panel_desktop_DATA = $(panel_desktop_in_files:.desktop.in=.desktop) 194@INTLTOOL_DESKTOP_RULE@ 195 196# appdata file for the application 197@INTLTOOL_XML_RULE@ 198appdatadir = $(datadir)/metainfo 199appdata_DATA = $(appdata_in_files:.xml.in=.xml) 200appdata_in_files = src/xfce4-screenshooter.appdata.xml.in 201 202 203# App icons 204 205# 16x16 icons 20616iconsdir = $(datadir)/icons/hicolor/16x16/apps 20716icons_DATA = icons/16x16/org.xfce.screenshooter.png 208 209# 24x24 icons 21024iconsdir = $(datadir)/icons/hicolor/24x24/apps 21124icons_DATA = icons/24x24/org.xfce.screenshooter.png 212 213# 32x32 icons 21432iconsdir = $(datadir)/icons/hicolor/32x32/apps 21532icons_DATA = icons/32x32/org.xfce.screenshooter.png 216 217# 48x48 icons 21848iconsdir = $(datadir)/icons/hicolor/48x48/apps 21948icons_DATA = icons/48x48/org.xfce.screenshooter.png 220 221# 128x128 icons 222128iconsdir = $(datadir)/icons/hicolor/128x128/apps 223128icons_DATA = icons/128x128/org.xfce.screenshooter.png 224 225# Scalable icons 226scaliconsdir = $(datadir)/icons/hicolor/scalable/apps 227scalicons_DATA = icons/scalable/org.xfce.screenshooter.svg 228 229# Update the icon cache 230gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor 231 232install-data-hook: 233 @-if test -z "$(DESTDIR)"; then \ 234 echo "Updating Gtk icon cache."; \ 235 $(gtk_update_icon_cache); \ 236 else \ 237 echo "*** Icon cache not updated. Remember to run:"; \ 238 echo "***"; \ 239 echo "*** $(gtk_update_icon_cache)"; \ 240 echo "***"; \ 241 fi 242 243 244.PHONY: ChangeLog 245 246ChangeLog: Makefile 247 (GIT_DIR=$(top_srcdir)/.git git log > .changelog.tmp \ 248 && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) \ 249 || (touch ChangeLog; echo 'Git directory not found: installing possibly empty changelog.' >&2) 250 251dist-hook: ChangeLog 252 253# Extra dist and distclean rules 254EXTRA_DIST = \ 255 README.md \ 256 intltool-extract.in \ 257 intltool-merge.in \ 258 intltool-update.in \ 259 lib/screenshooter-marshal.list \ 260 lib/screenshooter-imgur-dialog.ui \ 261 $(app_desktop_in_in_files) \ 262 $(panel_desktop_in_files) \ 263 $(16icons_DATA) \ 264 $(24icons_DATA) \ 265 $(32icons_DATA) \ 266 $(48icons_DATA) \ 267 $(128icons_DATA) \ 268 $(scalicons_DATA) \ 269 $(appdata_in_files) 270 271DISTCLEANFILES = \ 272 intltool-extract \ 273 intltool-merge \ 274 intltool-update \ 275 stamp-screenshooter-marshal.h \ 276 $(lib_libscreenshooter_built_sources) \ 277 lib/stamp-screenshooter-marshal.h \ 278 $(app_desktop_DATA) $(app_desktop_in_files) \ 279 $(panel_desktop_DATA) \ 280 $(appdata_DATA) \ 281 xfce4-screenshooter.1 282 283# Man pages 284dist_man_MANS = xfce4-screenshooter.1 285