06d3e965d71aa1d4c90a333f391e6b9d29f76f07 hiram Fri Dec 20 18:28:05 2013 -0800 honor the clean target and get all subdirs cleaned diff --git src/hg/mouseStuff/makefile src/hg/mouseStuff/makefile index 4af0e6e..730d902 100644 --- src/hg/mouseStuff/makefile +++ src/hg/mouseStuff/makefile @@ -1,100 +1,104 @@ # Build all directories in makeDb kentSrc = ../.. include ${kentSrc}/inc/localEnvironment.mk include ${kentSrc}/inc/common.mk BADDIRS = \ correctEst # List of directories to build for userApps UTILS_APPLIST = \ axtChain \ axtSort \ axtSwap \ axtToMaf \ axtToPsl \ bedCoverage \ chainAntiRepeat \ chainFilter \ chainMergeSort \ chainNet \ chainPreNet \ chainSort \ chainSplit \ chainStitchId \ chainSwap \ chainToAxt \ chainToPsl \ lavToAxt \ lavToPsl \ mafCoverage \ mafFetch \ mafRanges \ mafToAxt \ mafToPsl \ netChainSubset \ netClass \ netFilter \ netSplit \ netSyntenic \ netToAxt \ netToBed \ pslMrnaCover # List of directories to build at UCSC DIRS = \ axtAndBed \ axtBest \ axtCalcMatrix \ axtDropOverlap \ axtDropSelf \ axtFilter \ axtIndex \ axtPretty \ axtQueryCount \ axtRecipBest \ axtRescore \ axtSplitByTarget \ axtToBed \ axtToChain \ calcGap \ chainDbToFile \ chainStats \ gcForBed \ knownVsBlat \ libScan \ mousePoster \ netStats \ netToBedWithId \ orthologBySynteny \ phToPsl \ regionPicker \ rikenBestInCluster \ simpleChain \ splitSim \ subsetAxt \ subsetTraces \ whyConserved # List of directories to build USE_DIRS = $(DIRS) $(UTILS_APPLIST) all: ${USE_DIRS:%=%.all} %.all: cd $* && echo $* && ${MAKE} userApps: $(UTILS_APPLIST:%=%.userApp) %.userApp: cd $* && echo $* && $(MAKE) +clean:: $(USE_DIRS:%=%.cleanAll) +%.cleanAll: + cd $* && echo $* && $(MAKE) clean + clean:: cd simpleChain && ${MAKE} clean testAll: $(USE_DIRS:%=%.testAll) %.testAll: @test -s $*/tests/makefile && (echo $*; cd $* && $(MAKE) test) || true test:: testAll