mkbuild

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

commit b2a006da0ec5f05e3b2eae71051bffaec9e2cc21
parent f64689adcc2d04a0713d14b603764b8cb1340a83
Author: Daniel Bainton <dpb@driftaway.org>
Date:   Wed, 21 May 2014 10:50:24 +0300

Also clean the separate library objects

Diffstat:
Mmk.clean | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/mk.clean b/mk.clean @@ -9,7 +9,13 @@ clean:QV: bin_obj="$bin_obj \$${bobj}_OBJ" done 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 + lib_obj= + for i in $LIB; do + lobj=$(echo $i|tr '.' '_') + lib_obj="$lib_obj \$${lobj}_OBJ" + done + lib_obj=$(eval echo $lib_obj) + echo rm -f $t $b $OBJ $bin_obj $lib_obj $l $LOBJ $CLEAN_FILES .targs.mk .deps.mk + rm -f $t $b $OBJ $bin_obj $lib_obj $l $LOBJ $CLEAN_FILES .targs.mk .deps.mk distclean:QV: clean