Makefile: make xdg-mime calls non-fatal

xdg-mime may not be available in the build root being used.
Allow application installation to proceed anyway.
This commit is contained in:
Daniel Drake 2018-02-24 11:16:37 +03:00
parent 87e9effc84
commit 954fc91d1f

View file

@ -16,9 +16,9 @@ install:
install -m 0644 -D -t ${DESTDIR}${PREFIX}/share/applications anki.desktop
install -m 0644 -D -t ${DESTDIR}${PREFIX}/share/man/man1 anki.1
install -m 0644 -D -t ${DESTDIR}${PREFIX}/share/doc/anki README.contributing README.development README.md LICENSE
xdg-mime install anki.xml --novendor
xdg-mime default anki.desktop application/x-anki
xdg-mime default anki.desktop application/x-apkg
-xdg-mime install anki.xml --novendor
-xdg-mime default anki.desktop application/x-anki
-xdg-mime default anki.desktop application/x-apkg
@echo
@echo "Install complete."