diff options
author | davidovski <david@davidovski.xyz> | 2021-12-22 22:23:22 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2021-12-22 22:23:22 +0000 |
commit | 0adf1018b13646cb5e3222adb2ae73de76f858af (patch) | |
tree | b327b2234ee7442910937ff3d5fa6749d058a214 /Makefile | |
parent | 6394e9d1192e6171f6497675bad68bc1cb353084 (diff) |
added DESTDIR to make file
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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 |