| 1 | PREFIX = /usr/local |
| 2 | ICONS = 16x16.png 32x32.png 48x48.png 64x64.png 128x128.png |
| 3 | |
| 4 | all: |
| 5 | |
| 6 | install: |
| 7 | for f in $(ICONS); do \ |
| 8 | dir="$(DESTDIR)$(PREFIX)/share/icons/hicolor/$${f%.png}/apps"; \ |
| 9 | mkdir -p "$$dir"; \ |
| 10 | cp "$$f" "$$dir/nsxiv.png"; \ |
| 11 | chmod 644 "$$dir/nsxiv.png"; \ |
| 12 | done |