Description: Install icons file
Forwarded: no
Author: Daniel Echeverry <epsilon77@gmail.com>
Origin: vendor
Last-Update: 2017-10-31
--- a/icon/Makefile
+++ b/icon/Makefile
@@ -4,7 +4,7 @@
 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
@@ -77,6 +77,7 @@
 	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:
 	@echo "REMOVE bin/sxiv"
