0120049e1af065ba852c2fabb1fa27417ff1f617 hiram Fri Jun 18 13:51:57 2010 -0700 adding clean targets to makefiles reached via clean_utils diff --git src/hg/txCds/makefile src/hg/txCds/makefile index b3947e0..733fa33 100644 --- src/hg/txCds/makefile +++ src/hg/txCds/makefile @@ -1,14 +1,7 @@ # Build txGraph source include ../../inc/common.mk -all: - @for D in $(DIRS) x; do \ - if test "$$D" != "x" ; then \ - ( cd $$D && echo $$D && $(MAKE) ) ;\ - x=$$? ; if [ $$x -ne 0 ]; then exit $$x ; fi \ - fi ;\ - done - +# List of directories to build DIRS = \ txCdsBadBed \ txCdsCluster \ @@ -29,3 +22,15 @@ txCdsToGene \ txCdsWeed \ txInfoAssemble + +USE_DIRS = $(DIRS) + +all: $(USE_DIRS:%=%.all) + +%.all: + ( cd $* && echo $* && $(MAKE) ) + +clean:: $(USE_DIRS:%=%.clean) + +%.clean:: + ( cd $* && echo $* && $(MAKE) clean )