diff options
author | rbuj <[email protected]> | 2019-05-02 13:40:34 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-05-06 14:46:29 +0200 |
commit | 7b242fb0745aa6c70a7712743cdde1d6c7209afc (patch) | |
tree | d379945cf2f4530f7f11b52ebbe093703edf70d8 /data/icons/Makefile.am | |
parent | 383951fe3a2555cd1747649b04ec00a15f94eb73 (diff) | |
download | mate-session-manager-7b242fb0745aa6c70a7712743cdde1d6c7209afc.tar.bz2 mate-session-manager-7b242fb0745aa6c70a7712743cdde1d6c7209afc.tar.xz |
Simplify the installation process of the icons
...
Making install in icons
make[2]: Entering directory '/home/robert/devel/mate-session-manager/data/icons'
make[3]: Entering directory '/home/robert/devel/mate-session-manager/data/icons'
make[3]: Nothing to be done for 'install-exec-am'.
/usr/bin/mkdir -p '/usr/share/icons/hicolor'
/usr/bin/mkdir -p '/usr/share/icons/hicolor/48x48/apps'
/usr/bin/install -c -m 644 48x48/apps/mate-session-properties.png '/usr/share/icons/hicolor/48x48/apps'
/usr/bin/mkdir -p '/usr/share/icons/hicolor/24x24/apps'
/usr/bin/install -c -m 644 24x24/apps/mate-session-properties.png '/usr/share/icons/hicolor/24x24/apps'
/usr/bin/mkdir -p '/usr/share/icons/hicolor/scalable/apps'
/usr/bin/install -c -m 644 scalable/apps/mate-session-properties.svg '/usr/share/icons/hicolor/scalable/apps'
/usr/bin/mkdir -p '/usr/share/icons/hicolor/22x22/apps'
/usr/bin/install -c -m 644 22x22/apps/mate-session-properties.png '/usr/share/icons/hicolor/22x22/apps'
/usr/bin/mkdir -p '/usr/share/icons/hicolor/16x16/apps'
/usr/bin/install -c -m 644 16x16/apps/mate-session-properties.png '/usr/share/icons/hicolor/16x16/apps'
/usr/bin/mkdir -p '/usr/share/icons/hicolor/32x32/apps'
/usr/bin/install -c -m 644 32x32/apps/mate-session-properties.png '/usr/share/icons/hicolor/32x32/apps'
make install-data-hook
make[4]: Entering directory '/home/robert/devel/mate-session-manager/data/icons'
Updating Gtk icon cache.
gtk-update-icon-cache: Cache file created successfully.
...
Diffstat (limited to 'data/icons/Makefile.am')
-rw-r--r-- | data/icons/Makefile.am | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/data/icons/Makefile.am b/data/icons/Makefile.am index 014b2e4..da7ab8a 100644 --- a/data/icons/Makefile.am +++ b/data/icons/Makefile.am @@ -1,3 +1,31 @@ -SUBDIRS = 16x16 22x22 24x24 32x32 48x48 scalable +appiconsdir = $(datadir)/icons/hicolor + +nobase_dist_appicons_DATA = \ + 16x16/apps/mate-session-properties.png \ + 22x22/apps/mate-session-properties.png \ + 24x24/apps/mate-session-properties.png \ + 32x32/apps/mate-session-properties.png \ + 48x48/apps/mate-session-properties.png \ + scalable/apps/mate-session-properties.svg + +noinst_DATA = \ + 16x16/apps/mate-session-properties.svg \ + 22x22/apps/mate-session-properties.svg \ + 32x32/apps/mate-session-properties.svg + +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 + +EXTRA_DIST = $(noinst_DATA) -include $(top_srcdir)/git.mk |