6347dcc5431979ccd2bfb3bb056aa7b994997525 hiram Fri May 24 14:07:14 2013 -0700 updating userApps buildlist refs #9149 diff --git src/hg/ratStuff/makefile src/hg/ratStuff/makefile index 0470333..a1edafa 100644 --- src/hg/ratStuff/makefile +++ src/hg/ratStuff/makefile @@ -1,44 +1,40 @@ -# Build all directories - -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 = \ +# List of directories to build for userApps +UTILS_APPLIST = \ mafAddIRows \ mafAddQRows \ mafFilter \ mafFrag \ mafFrags \ mafGene \ mafMeFirst \ mafSpeciesList \ mafSpeciesSubset \ mafSplit \ mafSplitPos \ mafsInRegion \ - mafOrder \ + mafOrder + +# List of directories to build at UCSC +DIRS = \ stageMultiz -test:: - @for D in ${USE_DIRS} x; do \ - if test "$$D" != "x" ; then \ - ( cd $$D && echo $$D && ${MAKE} test ) ;\ - x=$$? ; if [ $$x -ne 0 ]; then exit $$x ; fi \ - fi ;\ - done +# List of directories to build +USE_DIRS = $(DIRS) $(UTILS_APPLIST) + +# Build all directories +all: ${USE_DIRS:%=%.all} +%.all: + cd $* && echo $* && ${MAKE} + +test: ${USE_DIRS:%=%.test} +%.test: + cd $* && echo $* && ${MAKE} test + +userApps: $(UTILS_APPLIST:%=%.userApp) +%.userApp: + cd $* && echo $* && $(MAKE) -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 +clean: $(USE_DIRS:%=%.clean) +%.clean: + cd $* && echo $* && $(MAKE) clean