mkports

recipes for building multiple softwares with mk(1)
git clone git://z3bra.org/mkports
Log | Files | Refs

commit 14839f2bab3f0467ee7a31143c69893a4634d9c5
parent 117341348352660579a37dcf31ccb05b85509353
Author: z3bra <contactatz3bradotorg>
Date:   Wed Nov 30 08:45:15 +0100

Simplify dependency checking

Diffstat:
mkfile | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/mkfile b/mkfile @@ -1,6 +1,7 @@ ALL = `{ls | grep -vE '[A-Z]+|[a-z]*\.mk|mkfile'} <deps.mk +<config.mk default:QV: echo "no default rule." @@ -18,12 +19,11 @@ all:QV: ${ALL} # target "command line arguments" NPROC = 1 %:V: - if ! pm -i $stem 2>/dev/null >/dev/null; then - for d in $prereq; do pm -af ${REPO}/$d#*.tar.bz2; done + pm -i $stem >/dev/null 2>&1 && exit 0 + for d in $prereq; do pm -af ${REPO}/${d}#*.tar.bz2; done cd $stem env -i PATH=$PATH mk env -i PATH=$PATH mk clean - fi clean:QV: pm -d $(pm -i | cut -f1)