Description: Install icons file
Forwarded: no
Author: Daniel Echeverry <epsilon77@gmail.com>
Origin: vendor
Last-Update: 2014-05-13
--- a/icon/Makefile
+++ b/icon/Makefile
@@ -4,7 +4,7 @@ ICONS  = 16x16.png 32x32.png 48x48.png 6
 all:
 
 install:
-	for f in $(ICONS); do \
+	set -e; for f in $(ICONS); do \
 		dir="$(DESTDIR)$(PREFIX)/share/icons/hicolor/$${f%.png}/apps"; \
 		mkdir -p "$$dir"; \
 		cp "$$f" "$$dir/sxiv.png"; \
--- a/Makefile
+++ b/Makefile
@@ -38,6 +38,7 @@ install: all
 	mkdir -p $(DESTDIR)$(PREFIX)/share/sxiv/exec
 	cp exec/* $(DESTDIR)$(PREFIX)/share/sxiv/exec/
 	chmod 755 $(DESTDIR)$(PREFIX)/share/sxiv/exec/*
+	$(MAKE) -C icon/ install
 
 uninstall:
 	rm -f $(DESTDIR)$(PREFIX)/bin/sxiv
