mkbuild

mk based build system
git clone git://git.2f30.org/mkbuild
Log | Files | Refs | LICENSE

commit 62fee26de728e1ef5ce11887623d22156dcc641b
parent e43378a86f7b23581ce9f7d8282f79f1ea1d49a1
Author: Daniel Bainton <dpb@driftaway.org>
Date:   Mon,  7 Apr 2014 16:54:53 +0300

Add support for mk distclean to remove the 3rdparty source trees

Diffstat:
Mmk.3rdparty | 5+++++
Mmk.clean | 2++
Mmk.parent | 7+++++++
3 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/mk.3rdparty b/mk.3rdparty @@ -32,4 +32,9 @@ clean:QV: env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk -f $mkfile clean fi +distclean:QV: + if test -d $src; then + rm -rf $src + fi + <$mkbuild/mk.fetch diff --git a/mk.clean b/mk.clean @@ -11,3 +11,5 @@ clean:QV: bin_obj=$(eval echo $bin_obj) echo rm -f $t $b $OBJ $bin_obj $l $LOBJ $CLEAN_FILES .targs.mk .deps.mk rm -f $t $b $OBJ $bin_obj $l $LOBJ $CLEAN_FILES .targs.mk .deps.mk + +distclean:QV: clean diff --git a/mk.parent b/mk.parent @@ -22,6 +22,13 @@ clean:QV: cd .. done +distclean:QV: + for t in $TARG; do + cd $t + env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk distclean + cd .. + done + fetch:QV: for t in $TARG; do cd $t