diff trix/Makefile @ 21:bef3b1af6326

trix - package for arch
author Przemyslaw <prymula76@outlook.com>
date Sun, 31 Mar 2024 22:14:33 +0200
parents 2787f5e749ae
children
line wrap: on
line diff
--- a/trix/Makefile	Sun Mar 31 16:21:08 2024 +0200
+++ b/trix/Makefile	Sun Mar 31 22:14:33 2024 +0200
@@ -13,7 +13,6 @@
 CFLAGS += -g -Wall `pkg-config --cflags $(PACKAGES)` -DLINUX
 #LDFLAGS += -ldl
 PREFIX = /usr
-#EXAMPLE_BIN contains list of example binaries to build
 
 all: $(APP_BIN)
 
@@ -27,14 +26,14 @@
 	$(CC) $(CFLAGS) -c $< -o $@
 
 install:
-	install -d $(PREFIX)/share/trix $(PREFIX)/share/trix/img $(PREFIX)/share/trix/img/bg
-	install trix $(PREFIX)/bin
-	install ZapfHumanist.ttf $(PREFIX)/share/trix
-	install img/*.bmp $(PREFIX)/share//trix/img
-	install img/bg/*.txt $(PREFIX)/share/trix/img/bg
-	install img/bg/*.jpeg $(PREFIX)/share/trix/img/bg
-	install img/*.png $(PREFIX)/share/trix/img
-	install Trix.desktop /usr/share/applications
+	install -d $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/share/trix $(DESTDIR)$(PREFIX)/share/trix/img $(DESTDIR)$(PREFIX)/share/trix/img/bg
+	install trix $(DESTDIR)$(PREFIX)/bin
+	install ZapfHumanist.ttf $(DESTDIR)$(PREFIX)/share/trix
+	install img/*.bmp $(DESTDIR)$(PREFIX)/share//trix/img
+	install img/bg/*.txt $(DESTDIR)$(PREFIX)/share/trix/img/bg
+	install img/bg/*.jpeg $(DESTDIR)$(PREFIX)/share/trix/img/bg
+	install img/*.png $(DESTDIR)$(PREFIX)/share/trix/img
+	install Trix.desktop $(DESTDIR)/usr/share/applications
 
 
 uninstall: