summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2018-12-24 14:05:35 -0500
committerAndrew Cady <d@jerkface.net>2019-02-24 12:54:16 -0500
commita3ab1ef1a1e0b390fdbbe2534cd66a62f4c47279 (patch)
tree34bb79348dc9ec44f2e7d300bf6bfc946f69134c
parentc95c5a0497649899e9fcf27de257e2d4b7f59386 (diff)
run update-desktop-database after writing firefox.desktop
-rwxr-xr-xMakefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index b2d8a04..285897c 100755
--- a/Makefile
+++ b/Makefile
@@ -18,6 +18,10 @@ endif
18endif 18endif
19 19
20ifeq (0,$(shell id -u)) 20ifeq (0,$(shell id -u))
21ROOT_INSTALL = y
22endif
23
24ifdef ROOT_INSTALL
21optdir=/opt 25optdir=/opt
22bindir=/usr/local/bin 26bindir=/usr/local/bin
23applications_dir=/usr/share/applications 27applications_dir=/usr/share/applications
@@ -65,6 +69,9 @@ alternatives:
65 69
66$(desktop_file): 70$(desktop_file):
67 : write file $@ $(file >$@,$(desktop_file_contents)) 71 : write file $@ $(file >$@,$(desktop_file_contents))
72ifdef ROOT_INSTALL
73 update-desktop-database
74endif
68 75
69$(symlink): $(destdir) 76$(symlink): $(destdir)
70 cd $(dir $@) && ln -sf $(notdir $(destdir)) $(notdir $@) 77 cd $(dir $@) && ln -sf $(notdir $(destdir)) $(notdir $@)
@@ -74,7 +81,7 @@ beta nightly stable: install
74$(destdir): $(tarball) 81$(destdir): $(tarball)
75 mkdir -p $(tempdir) 82 mkdir -p $(tempdir)
76 tar -C $(tempdir) --strip-components=1 -jxf $< 83 tar -C $(tempdir) --strip-components=1 -jxf $<
77 mv $(tempdir) $(destdir) 84 mv -T $(tempdir) $(destdir)
78 rm $(tarball) || true 85 rm $(tarball) || true
79 86
80.INTERMEDIATE: $(tarball) 87.INTERMEDIATE: $(tarball)
@@ -88,9 +95,6 @@ FIREFOX_DIR=$(optdir)/firefox
88FIREFOX_EXEC=$(FIREFOX_DIR)/firefox 95FIREFOX_EXEC=$(FIREFOX_DIR)/firefox
89FIREFOX_ICON=$(FIREFOX_DIR)/browser/chrome/icons/default/default128.png 96FIREFOX_ICON=$(FIREFOX_DIR)/browser/chrome/icons/default/default128.png
90 97
91firefox.desktop:
92 : $(file > $(desktop_file_contents))
93
94define desktop_file_contents 98define desktop_file_contents
95[Desktop Entry] 99[Desktop Entry]
96Name=Firefox 100Name=Firefox