commit 644120595cff7b1648ebdd7b8750e4c94fea5c10 parent d2149b0810530c02243d7d6c68d1d47b3b8364b7 Author: Jacob R. Edwards <jacobouno@protonmail.com> Date: Wed, 30 Jun 2021 01:31:59 -0700 Fix install Diffstat:
M | mk/lib.mk | | | 6 | ++++++ |
M | mk/prog.mk | | | 2 | -- |
M | mkfile | | | 8 | +++++--- |
3 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/mk/lib.mk b/mk/lib.mk @@ -2,3 +2,9 @@ $name: $obj $ar rcs $target $newprereq + +install:V: $name + cp -f $name $prefix/lib + +uninstall:V: + rm -f $prefix/lib/$name diff --git a/mk/prog.mk b/mk/prog.mk @@ -5,8 +5,6 @@ $name: $obj install:V: $name cp -f $name $prefix/bin - cp -f $name.1 $manprefix/man1 uninstall:V: rm -f $prefix/bin/$name - rm -f $manprefix/man1/$name.1 diff --git a/mkfile b/mkfile @@ -1,10 +1,12 @@ # Copyright 2021 Jacob R. Edwards subdirs = lib aps apc -targets = install uninstall clean +targets = all install uninstall clean -$targets: +all:V: + +$targets:V: for dir in $subdirs do - (cd $dir && mk $MKFLAGS $MKARGS) + (cd $dir && pwd && mk $MKFLAGS $MKARGS) done