From abb21470e8ead7671c9e6e361237cfee184eaae8 Mon Sep 17 00:00:00 2001 From: Christian Hohnstaedt Date: Wed, 23 Feb 2011 19:58:23 +0100 Subject: [PATCH] update desktop and mime database during installation --- misc/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/misc/Makefile b/misc/Makefile index b9fcb0d7..a3ee5373 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -8,6 +8,10 @@ install: install -m 644 *.txt *.xca $(destdir)$(prefix)/share/xca install -m 644 xca.desktop $(destdir)$(prefix)/share/applications install -m 644 xca.xml $(destdir)$(prefix)/share/mime/packages + if test -z "$(destdir)"; then \ + update-mime-database $(prefix)/share/mime || :; \ + update-desktop-database || :; \ + fi app: mkdir -p $(APPDIR)/Resources