pm

barely a pack manager
git clone git://z3bra.org/pm
Log | Files | Refs | README | LICENSE

commit 43061929728ba58dd57d8fb3f3b7b28d4904ab80
parent f93efb2ffb3ec69a6fc760ed6ebdd262397ee14b
Author: Willy Goiffon <dev@z3bra.org>
Date:   Tue,  2 Jul 2019 10:58:25 +0200

Provide mkfile to build with plan9's mk

Diffstat:
mkfile | 31+++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+), 0 deletions(-)

diff --git a/mkfile b/mkfile @@ -0,0 +1,30 @@ +<config.mk + +pm: pm.o + ${LD} $prereq ${LDFLAGS} ${LIBS} -o $target + +pm.o: pm.c + ${CC} -c -o $target $prereq ${CPPFLAGS} ${CFLAGS} + +config.h: config.def.h + cp $prereq $stem + +clean:V: + rm -f pm *.o + +distclean:V: clean + rm config.h + +install:V: pm pm.1 pack.5 + mkdir -p ${DESTDIR}${PREFIX}/bin + mkdir -p ${DESTDIR}${MANDIR}/man1 + mkdir -p ${DESTDIR}${MANDIR}/man5 + cp pm ${DESTDIR}${PREFIX}/bin/pm + cp pm.1 ${DESTDIR}${MANDIR}/man1/ + cp pack.5 ${DESTDIR}${MANDIR}/man5/ + chmod 755 ${DESTDIR}${PREFIX}/bin/pm + +uninstall:V: + rm ${DESTDIR}${PREFIX}/bin/pm + rm ${DESTDIR}${MANDIR}/man1/pm.1 + rm ${DESTDIR}${MANDIR}/man5/pack.5+ \ No newline at end of file