Add desktop and icon rules to Makefile, document icon installation (#80)

Co-authored-by: NRK <nrk@disroot.org>
This commit is contained in:
Guilherme Rugai Freire
2021-09-22 23:17:52 -03:00
committed by GitHub
parent 9e22f32c07
commit de9a285ff2
3 changed files with 40 additions and 16 deletions

View File

@ -1,12 +0,0 @@
PREFIX = /usr/local
ICONS = 16x16.png 32x32.png 48x48.png 64x64.png 128x128.png
all:
install:
for f in $(ICONS); do \
dir="$(DESTDIR)$(PREFIX)/share/icons/hicolor/$${f%.png}/apps"; \
mkdir -p "$$dir"; \
cp "$$f" "$$dir/nsxiv.png"; \
chmod 644 "$$dir/nsxiv.png"; \
done