summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-07-27 22:39:37 +0100
committerdavidovski <david@davidovski.xyz>2022-07-27 22:39:37 +0100
commitd24c110caab48002edb5a3e2c41876e6e0a7a6ed (patch)
tree4108f336d9813dc0ce005bb059dba40d43bdf1bf /Makefile
parentd20a2478df0a5a5f48d64c52af510bfa30bd004a (diff)
tidied makefilev1.7.1
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 3289a2c..9ae35fb 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,11 @@
-SOURCE=src
PREFIX=/usr
CONFDIR=/etc
-#install: install-config
-# mkdir -p ${DESTDIR}${PREFIX}/bin
-# mkdir -p ${DESTDIR}${PREFIX}/lib/xipkg
-# install -m755 ${SOURCE}/*.sh ${DESTDIR}${PREFIX}/lib/xipkg/
-# install -m755 ${SOURCE}/xi.sh ${DESTDIR}${PREFIX}/bin/xipkg
-# git describe --always > ${DESTDIR}${PREFIX}/lib/xipkg/VERSION
+.DEFAULT_GOAL := build
+
+build:
+ @./build.shmk build
install-config:
mkdir -p $(DESTDIR)${CONFDIR}/xipkg.d/
@@ -16,6 +13,9 @@ install-config:
cp xipkg.conf $(DESTDIR)${CONFDIR}/xipkg.conf
-install: install-config
- ./build.shmk
+install: build install-config
+ @./build.shmk install
ln -sf xipkg ${DESTDIR}${PREFIX}/bin/xi
+
+clean:
+ @./build.shmk clean