diff options
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 0000000..7a1f232 --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,52 @@ +# $Id$ + +bin_PROGRAMS = \ + xfce4-appfinder + +xfce4_appfinder_SOURCES = \ + xfce4-appfinder.h \ + xfce4-appfinder.c \ + appfinder.h \ + inline-icon.h \ + main.c \ + main.h + +xfce4_appfinder_CFLAGS = \ + -I$(top_srcdir) \ + -DLOCALEDIR=\"$(localedir)\" \ + $(LIBXFCEGUI4_CFLAGS) + +xfce4_appfinder_LDADD = \ + $(LIBXFCEGUI4_LIBS) + +appsdir = $(datadir)/applications +apps_in_files = xfce4-appfinder.desktop.in +apps_DATA = $(apps_in_files:.desktop.in=.desktop) +@INTLTOOL_DESKTOP_RULE@ + +icondir = $(datadir)/icons/hicolor/48x48/apps +icon_DATA = \ + xfce4-appfinder.png + +inline-icon.h: $(srcdir)/xfce4-appfinder.png + gdk-pixbuf-csource --raw --build-list \ + default_icon_data_48_48 xfce4-appfinder.png > $(srcdir)/inline-icon.h + +EXTRA_DIST = $(icon_DATA) $(apps_in_files) + +DISTCLEANFILES = $(apps_DATA) + +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 + +# vi:set ts=8 sw=8 noet ai nocindent: |