0120049e1af065ba852c2fabb1fa27417ff1f617 hiram Fri Jun 18 13:51:57 2010 -0700 adding clean targets to makefiles reached via clean_utils diff --git src/hg/rnaStructure/makefile src/hg/rnaStructure/makefile index c17d7e3..72de0b8 100644 --- src/hg/rnaStructure/makefile +++ src/hg/rnaStructure/makefile @@ -1,18 +1,22 @@ include ../../inc/common.mk # Build all directories in makeDb -all: - @for D in $(USE_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 -USE_DIRS = $(DIRS) - DIRS = \ hgLoadRnaFold \ rnaFoldBig \ utrFa + +USE_DIRS = ${DIRS} + +all: $(USE_DIRS:%=%.all) + +%.all: + ( cd $* && echo $* && ${MAKE} ) + + + +clean:: $(USE_DIRS:%=%.clean) + +%.clean:: + ( cd $* && echo $* && ${MAKE} clean )