summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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