summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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