From 59c596504e6063f14fca6c2044695f8d89e5f3c8 Mon Sep 17 00:00:00 2001 From: Marcus Lundblad Date: Wed, 13 Jun 2012 21:26:08 +0200 Subject: [PATCH] Install icons. --- Makefile.am | 2 +- configure.ac | 1 + icons/Makefile.am | 22 ++++++++++++++++++++++ 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 icons/Makefile.am diff --git a/Makefile.am b/Makefile.am index 9de76b0..d388601 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,7 +1,7 @@ ## Process this file with automake to produce Makefile.in ## Created by Anjuta -SUBDIRS = data src po +SUBDIRS = data icons src po tablerdocdir = ${prefix}/doc/tabler tablerdoc_DATA = \ diff --git a/configure.ac b/configure.ac index 83c6282..500564b 100644 --- a/configure.ac +++ b/configure.ac @@ -46,6 +46,7 @@ AC_OUTPUT([ Makefile data/Makefile data/tabler.desktop.in +icons/Makefile src/Makefile po/Makefile.in ]) diff --git a/icons/Makefile.am b/icons/Makefile.am new file mode 100644 index 0000000..c993a6f --- /dev/null +++ b/icons/Makefile.am @@ -0,0 +1,22 @@ +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 + + +svgicondir = $(datadir)/icons/hicolor/scalable/apps +svgicon_DATA = tabler.svg + +mimesvgicondir = $(datadir)/icons/hicolor/scalable/mimetypes +mimesvgicon_DATA = application-x-tabler.svg + + +EXTRA_DIST = $(svgicon_DATA) $(mimesvgicon_DATA) \ No newline at end of file