summaryrefslogtreecommitdiff
path: root/data/icons/Makefile.am
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-04-04 10:56:55 +0200
committerRobert Antoni Buj Gelonch <[email protected]>2019-04-12 08:40:35 +0200
commita344e2b0f7e9101dc82c2e2cfcf219772a497822 (patch)
tree63d44ae6ae143c44b6ce5cbc52bf630c08bf4045 /data/icons/Makefile.am
parent520e339ba66f65bbeaa731875d8b41fbb287953c (diff)
downloadengrampa-a344e2b0f7e9101dc82c2e2cfcf219772a497822.tar.bz2
engrampa-a344e2b0f7e9101dc82c2e2cfcf219772a497822.tar.xz
Use the Automake variable nobase_dist_icons_DATA
nobase_dist_icons_DATA: nobase: It tells that the files have same directory structure as the installed on system dist: It tells that the files should be included in the distribution tarball icons: It tells where to install the files DATA: It tells that they are data files, and they do not need to be compiled
Diffstat (limited to 'data/icons/Makefile.am')
-rw-r--r--data/icons/Makefile.am28
1 files changed, 27 insertions, 1 deletions
diff --git a/data/icons/Makefile.am b/data/icons/Makefile.am
index 5a56f89..3817ee8 100644
--- a/data/icons/Makefile.am
+++ b/data/icons/Makefile.am
@@ -1,3 +1,29 @@
-SUBDIRS = 16x16 22x22 24x24 32x32 scalable
+iconsdir = $(datadir)/icons/hicolor
+
+nobase_dist_icons_DATA = \
+ 16x16/actions/add-files-to-archive.png \
+ 16x16/actions/add-folder-to-archive.png \
+ 16x16/actions/extract-archive.png \
+ 16x16/apps/engrampa.png \
+ 22x22/apps/engrampa.png \
+ 24x24/actions/add-files-to-archive.png \
+ 24x24/actions/add-folder-to-archive.png \
+ 24x24/actions/extract-archive.png \
+ 24x24/apps/engrampa.png \
+ 32x32/apps/engrampa.png \
+ scalable/apps/engrampa.svg
+
+gtk_update_icon_cache = gtk-update-icon-cache -f -t $(iconsdir)
+
+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 install, run this:"; \
+ echo "*** $(gtk_update_icon_cache)"; \
+ fi
-include $(top_srcdir)/git.mk