mkbuild

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

mk.clean (662B)


      1 
      2 clean:QV:
      3 	t=`if test "$TARG" = "NOTARG"; then echo; else echo $TARG; fi `
      4 	b=`if test "$BIN" = "NOBIN"; then echo; else echo $BIN; fi `
      5 	l=`if test "$LIB" = "NOLIB"; then echo; else echo $LIB; fi `
      6 	bin_obj=
      7 	for i in $BIN; do
      8 		bobj=$(echo $i|tr '.' '_'|tr '/' '_')
      9 		bin_obj="$bin_obj \$${bobj}_OBJ"
     10 	done
     11 	bin_obj=$(eval echo $bin_obj)
     12 	lib_obj=
     13 	for i in $LIB; do
     14 		lobj=$(echo $i|tr '.' '_'|tr '/' '_')
     15 		lib_obj="$lib_obj \$${lobj}_OBJ"
     16 	done
     17 	lib_obj=$(eval echo $lib_obj)
     18 	echo rm -f $t $b $OBJ $bin_obj $lib_obj $l $LOBJ $CLEAN_FILES .targs.mk .deps.mk
     19 	rm -f $t $b $OBJ $bin_obj $lib_obj $l $LOBJ $CLEAN_FILES .targs.mk .deps.mk
     20 
     21 distclean:QV: clean