morpheus

suckless linux distro
git clone git://git.2f30.org/morpheus
Log | Files | Refs | Submodules | README | LICENSE

commit f14b42728a3a4cafa0ea50ffd17862bdc799f908
parent d05afc070e6b29d881c30b55563656c988372088
Author: sin <sin@2f30.org>
Date:   Mon, 21 Apr 2014 10:15:24 +0100

Some targets could not cope without a TARG specification

The default action is to act on all targets.

Diffstat:
Mmkfile | 24++++++++++++++++++++----
1 file changed, 20 insertions(+), 4 deletions(-)

diff --git a/mkfile b/mkfile @@ -22,16 +22,32 @@ bootable:V: install:QV: cd ports - env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk install ROOT="${ROOT}" TARG="$TARG" + if test "$TARG" = ""; then + env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk install ROOT="${ROOT}" + else + env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk install ROOT="${ROOT}" TARG="$TARG" + fi clean:QV: cd ports - env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk clean TARG="$TARG" + if test "$TARG" = ""; then + env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk clean + else + env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk clean TARG="$TARG" + fi distclean:QV: cd ports - env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk distclean TARG="$TARG" + if test "$TARG" = ""; then + env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk distclean + else + env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk distclean TARG="$TARG" + fi fetch:QV: cd ports - env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk fetch TARG="$TARG" + if test "$TARG" = ""; then + env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk fetch + else + env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk fetch TARG="$TARG" + fi