adaefb41c47c8ed44b75ad2793770bae5070e71b hiram Fri Jun 18 20:36:26 2010 -0700 last bunch of makefiles that need a clean target diff --git src/hg/visiGene/makefile src/hg/visiGene/makefile index 3d97ae2..f219bff 100644 --- src/hg/visiGene/makefile +++ src/hg/visiGene/makefile @@ -1,13 +1,4 @@ -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 +include ../../inc/common.mk # List of directories to build USE_DIRS = $(DIRS) @@ -18,3 +9,13 @@ # Needs work to compile # vgPrepImage \ + +all: $(USE_DIRS:%=%.all) + +%.all: + ( cd $* && echo $* && $(MAKE) ) + +clean:: $(USE_DIRS:%=%.clean) + +%.clean:: + ( cd $* && echo $* && $(MAKE) clean )