better install in datadir

this should be compatible with packaging
This commit is contained in:
Jaromil 2011-05-15 19:24:42 +02:00
parent a65cb293e7
commit 7345596f79

View File

@ -30,8 +30,10 @@ MimePkg = tomb.mimepkg
install-data-hook: install-data-hook:
@echo "installing mime type" @echo "installing mime type"
@install -D dyne-tomb.xml $(DESTDIR)$(datadir)/mime/packages
@if ! [ -n `which xdg-mime` ]; then xdg-mime install dyne-tomb.xml; fi @if ! [ -n `which xdg-mime` ]; then xdg-mime install dyne-tomb.xml; fi
@echo "installing icons"; @echo "installing icons";
@install -D monmort.png $(DESTDIR)$(datadir)/pixmaps
@if ! [ -n `which xdg-icon-resource` ]; then \ @if ! [ -n `which xdg-icon-resource` ]; then \
xdg-icon-resource install --context mimetypes --size 32 ../src/monmort.xpm monmort; \ xdg-icon-resource install --context mimetypes --size 32 ../src/monmort.xpm monmort; \
xdg-icon-resource install --size 32 ../src/monmort.xpm dyne-monmort; fi xdg-icon-resource install --size 32 ../src/monmort.xpm dyne-monmort; fi