From d24c110caab48002edb5a3e2c41876e6e0a7a6ed Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 27 Jul 2022 22:39:37 +0100 Subject: tidied makefile --- Makefile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.1