kopia lustrzana https://github.com/FreeSpacenav/spnavcfg
Stop installing multiple-sized icons in $PREFIX/share/pixmaps. Which
according to github issue #9, goes against the convention. Install them under $PREFIX/share/icons/hicolor/WxH/apps/ instead, where we previously used to install links to the icons under pixmaps.pull/11/head
rodzic
c85e6cdd1e
commit
97673e7f9d
|
@ -33,13 +33,10 @@ clean:
|
|||
install:
|
||||
$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
|
||||
$(INSTALL) -m 4775 $(bin) $(DESTDIR)$(PREFIX)/bin/$(bin)
|
||||
mkdir -p $(DESTDIR)$(PREFIX)/share/pixmaps
|
||||
cp icons/spnavcfg-*.png $(DESTDIR)$(PREFIX)/share/pixmaps/
|
||||
for i in 48 128 256; do \
|
||||
destdir=$(DESTDIR)$(PREFIX)/share/icons/hicolor/$${i}x$${i}/apps; \
|
||||
mkdir -p $$destdir; \
|
||||
rm -f $$destdir/spnavcfg-$${i}x$${i}.png; \
|
||||
ln -s $(DESTDIR)$(PREFIX)/share/pixmaps/spnavcfg-$${i}x$${i}.png $$destdir/spnavcfg-$${i}x$${i}.png; \
|
||||
cp icons/spnavcfg-$${i}x$${i}.png $$destdir/spnavcfg.png; \
|
||||
done
|
||||
mkdir -p $(DESTDIR)$(PREFIX)/share/applications
|
||||
cp -a icons/spnavcfg.desktop $(DESTDIR)$(PREFIX)/share/applications/
|
||||
|
@ -48,9 +45,8 @@ install:
|
|||
.PHONY: uninstall
|
||||
uninstall:
|
||||
rm -f $(DESTDIR)$(PREFIX)/bin/$(bin)
|
||||
rm -f $(DESTDIR)$(PREFIX)/share/pixmaps/spnavcfg-*.png
|
||||
for i in 48 128 256; do \
|
||||
destdir=$(DESTDIR)$(PREFIX)/share/icons/hicolor/$${i}x$${i}/apps; \
|
||||
rm -f $${destdir}/spnavcfg-$${i}x$${i}.png; \
|
||||
rm -f $${destdir}/spnavcfg.png; \
|
||||
done
|
||||
rm -f $(DESTDIR)$(PREFIX)/share/applications/spnavcfg.desktop
|
||||
|
|
Ładowanie…
Reference in New Issue