summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2021-12-22 22:23:22 +0000
committerdavidovski <david@davidovski.xyz>2021-12-22 22:23:22 +0000
commit0adf1018b13646cb5e3222adb2ae73de76f858af (patch)
treeb327b2234ee7442910937ff3d5fa6749d058a214 /Makefile
parent6394e9d1192e6171f6497675bad68bc1cb353084 (diff)
added DESTDIR to make file
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 8948fda..3fc0592 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,9 @@
XI_BINARY=bin/xi
SOURCE=src
+
+DESTDIR=
+
xi: src/xi.py
mkdir -p bin
cd src && zip -r xi.zip *
@@ -9,10 +12,10 @@ xi: src/xi.py
chmod +x ${XI_BINARY}
install: clean xi xipkg.conf default.conf bin/xi
- mkdir -p /etc/xipkg.d/
- cp default.conf /etc/xipkg.d/
- cp xipkg.conf /etc/xipkg.conf
- cp bin/xi /usr/bin/xi
+ mkdir -p $(DESTDIR)/etc/xipkg.d/
+ cp default.conf $(DESTDIR)/etc/xipkg.d/
+ cp xipkg.conf $(DESTDIR)/etc/xipkg.conf
+ cp bin/xi $(DESTDIR)/usr/bin/xi
clean:
rm -rf bin