From 0adf1018b13646cb5e3222adb2ae73de76f858af Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 22 Dec 2021 22:23:22 +0000 Subject: added DESTDIR to make file --- Makefile | 11 +++++++---- 1 file 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 -- cgit v1.2.1