commit d05afc070e6b29d881c30b55563656c988372088 parent b5228bae462901c3aec494a77084b6c44503ac24 Author: sin <sin@2f30.org> Date: Fri, 18 Apr 2014 13:34:47 +0100 If mk is invoked without a target, build all of them Diffstat:
M | mkfile | | | 7 | +++++-- |
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/mkfile b/mkfile @@ -7,7 +7,11 @@ mkbuild = `{pwd}/mkbuild all:QV: cd ports - env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk TARG="$TARG" + if test "$TARG" = ""; then + env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk + else + env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk TARG="$TARG" + fi init:QV: git submodule init @@ -31,4 +35,3 @@ distclean:QV: fetch:QV: cd ports env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk fetch TARG="$TARG" -