summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaromil <jaromil@dyne.org>2011-03-03 15:33:05 (GMT)
committer Jaromil <jaromil@dyne.org>2011-03-03 15:33:05 (GMT)
commit75446f6d5d8d3addc269f1bf592dc91534e6ccd1 (patch)
tree123b15de38044977b8874dbb4e5e8afe48041080
parent71c63f338965da33e9d5f9f4a04a41be19176109 (diff)
correct installation of desktop files
-rw-r--r--share/Makefile.am7
1 files changed, 4 insertions, 3 deletions
diff --git a/share/Makefile.am b/share/Makefile.am
index 85d0b5d..b521f6e 100644
--- a/share/Makefile.am
+++ b/share/Makefile.am
@@ -10,7 +10,8 @@ Icons_DATA = hasciicam.png
# $(datadir)/app-install/icons
install-data-hook:
- xdg-icon-resource install --size 64 hasciicam.png dyne-hasciicam
- update-desktop-database
- update-menus
+ @if ! [ -n `which xdg-icon-resource` ]; then \
+ xdg-icon-resource install --size 64 hasciicam.png dyne-hasciicam; fi
+ @if ! [ -n `which update-desktop-database` ]; then update-desktop-database; fi
+ @if ! [ -n `which update-menus` ]; then update-menus; fi