47ea306c424d4b800a1d6fea2cef10547bbaba62 hiram Thu Jun 17 15:37:36 2010 -0700 fixup makefiles to have clean targets diff --git src/hg/ratStuff/makefile src/hg/ratStuff/makefile index 4b2d90b..f135232 100644 --- src/hg/ratStuff/makefile +++ src/hg/ratStuff/makefile @@ -1,28 +1,36 @@ # Build all directories all: - @for D in $(USE_DIRS) x; do \ + @for D in ${USE_DIRS} x; do \ if test "$$D" != "x" ; then \ - ( cd $$D && echo $$D && $(MAKE) ) ;\ + ( cd $$D && echo $$D && ${MAKE} ) ;\ x=$$? ; if [ $$x -ne 0 ]; then exit $$x ; fi \ fi ;\ done # List of directories to build -USE_DIRS = $(DIRS) +USE_DIRS = ${DIRS} DIRS = \ mafAddIRows \ mafAddQRows \ mafFilter \ mafFrag \ mafFrags \ mafGene \ mafMeFirst \ mafSpeciesList \ mafSpeciesSubset \ mafSplit \ mafSplitPos \ mafsInRegion \ mafOrder \ stageMultiz + +clean:: + @for D in ${USE_DIRS} x; do \ + if test "$$D" != "x" ; then \ + ( cd $$D && echo $$D && ${MAKE} clean ) ;\ + x=$$? ; if [ $$x -ne 0 ]; then exit $$x ; fi \ + fi ;\ + done