[ghex] Fix icon installation



commit 0cda5e110d61a86a3a86371e75fca635c50b7c3d
Author: Kalev Lember <klember redhat com>
Date:   Mon Aug 31 23:55:35 2015 +0200

    Fix icon installation
    
    Commit 9019fc2 that was going to remove icon cache scripts deleted a bit
    too much. This reverts part of that commit and makes sure that icon
    installation and uninstallation still works.

 icons/Makefile.am |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/icons/Makefile.am b/icons/Makefile.am
index 746da24..10606ee 100644
--- a/icons/Makefile.am
+++ b/icons/Makefile.am
@@ -24,4 +24,27 @@ EXTRA_DIST = \
        $(noinst_DATA)          \
        $(NULL)
 
+install-icons:
+       for icon in $(public_icons); do \
+               THEME=`echo $$icon | cut -d_ -f1`; \
+               CONTEXT=`echo $$icon | cut -d_ -f2`; \
+               SIZE=`echo $$icon | cut -d_ -f3`; \
+               ICONFILE=`echo $$icon | cut -d_ -f4`; \
+               mkdir -p $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT; \
+               $(INSTALL_DATA) $(srcdir)/$$icon 
$(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
+       done
+
+uninstall-icons:
+       -for icon in $(public_icons); do \
+               THEME=`echo $$icon | cut -d_ -f1`; \
+               CONTEXT=`echo $$icon | cut -d_ -f2`; \
+               SIZE=`echo $$icon | cut -d_ -f3`; \
+               ICONFILE=`echo $$icon | cut -d_ -f4`; \
+               rm -f $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
+       done
+
+install-data-local: install-icons
+
+uninstall-local: uninstall-icons
+
 -include $(top_srcdir)/git.mk


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]