about summary refs log tree commit diff stats
path: root/linux
diff options
context:
space:
mode:
authorReginald Kennedy <rk@rejii.com>2012-12-18 21:42:19 -0600
committerDave Collins <davec@conformal.com>2012-12-18 21:42:19 -0600
commitc86951009a4d3c682e04bd51c7d98eaa30d4d1f5 (patch)
tree17f85f2abb7f4dec04d6a5acc0217021c44aed9c /linux
parent5639a6bdb111baa5157200e2ad739f3c4f293a3d (diff)
downloadxombrero-c86951009a4d3c682e04bd51c7d98eaa30d4d1f5.tar.gz
Add install of $(PREFIX)/share/applications to Makefile.
This fixes issues when installing to a clean path such as with
package creation.
Diffstat (limited to 'linux')
-rw-r--r--linux/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/Makefile b/linux/Makefile
index 3b2500c..e01e48e 100644
--- a/linux/Makefile
+++ b/linux/Makefile
@@ -21,6 +21,7 @@ LDADD+= $(shell pkg-config --libs $(LIBS)) $(JS_LD) -ldl -lgcrypt -lX11
 PREFIX?= /usr/local
 BINDIR?= $(PREFIX)/bin
 LIBDIR?= $(PREFIX)/lib
+APPDIR?= $(PREFIX)/share/applications
 MANDIR?= $(PREFIX)/share/man
 RESDIR?= $(PREFIX)/share/xombrero
 
@@ -61,10 +62,11 @@ install: all
 	install -m 755 -d $(DESTDIR)$(LIBDIR)
 	install -m 755 -d $(DESTDIR)$(MANDIR)/man1
 	install -m 755 -d $(DESTDIR)$(RESDIR)
+	install -m 755 -d $(DESTDIR)$(APPDIR)
 	install -m 755 xombrero $(DESTDIR)$(BINDIR)
 	install -m 644 ../xombrero.1 $(DESTDIR)$(MANDIR)/man1/xombrero.1
 	install -m 644 ../xombrero.css $(DESTDIR)$(RESDIR)
-	install -m 644 ../xombrero.desktop $(DESTDIR)$(PREFIX)/share/applications
+	install -m 644 ../xombrero.desktop $(DESTDIR)$(APPDIR)
 	install -m 644 ../xombreroicon16.png $(DESTDIR)$(RESDIR)
 	install -m 644 ../xombreroicon32.png $(DESTDIR)$(RESDIR)
 	install -m 644 ../xombreroicon48.png $(DESTDIR)$(RESDIR)