about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--Makefile1
-rw-r--r--linux/Makefile4
2 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 186141b..57584b9 100644
--- a/Makefile
+++ b/Makefile
@@ -58,6 +58,7 @@ beforeinstall:
 	install -m 755 -d ${PREFIX}/bin
 	install -m 755 -d ${PREFIX}/man/man1/
 	install -m 755 -d ${PREFIX}/share/xombrero
+	install -m 755 -d ${PREFIX}/share/applications
 	install -m 644 $(.CURDIR)/xombrero.css ${PREFIX}/share/xombrero
 	install -m 644 $(.CURDIR)/xombrero.desktop ${PREFIX}/share/applications
 	install -m 644 ${.CURDIR}/xombreroicon.png ${PREFIX}/share/xombrero
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)