0cfbeba76576c811dfdda453b8955429327f897d hiram Tue May 21 15:40:21 2013 -0700 fixup parallel build rules refs #9104 diff --git src/hg/geneBounds/makefile src/hg/geneBounds/makefile index 9c2f5fa..4ff731b 100644 --- src/hg/geneBounds/makefile +++ src/hg/geneBounds/makefile @@ -1,51 +1,56 @@ include ../../inc/common.mk # Build all directories in makeDb # List of directories to build USE_DIRS = $(DIRS) DIRS = \ assessLibs \ averagExp \ axtForEst \ bedCons \ checkableBorf \ clusterGenes \ clusterPsl \ clusterRna \ dnaMotifFind \ eisenInput \ emblMatrixToMotif \ estLibStats \ expToRna \ iriToControlTable \ iriToDnaMotif \ lib \ liftPromoHits \ motifLogo \ motifSig \ orf \ orfStats \ polyInfo \ promoSeqFromCluster \ raToCds \ twinOrf \ twinOrf2 \ twinOrf3 \ twinOrfStats \ twinOrfStats2 \ twinOrfStats3 + all: $(USE_DIRS:%=%.all) -%.all: +lib.all: cd lib && $(MAKE) - ( cd $* && echo $* && $(MAKE) ) + +# make sure lib is built first, even in a parallel make + +%.all: lib.all + cd $* && echo $* && $(MAKE) test:: cd clusterGenes && ${MAKE} test clean:: $(USE_DIRS:%=%.clean) %.clean:: - ( cd $* && echo $* && $(MAKE) clean ) + cd $* && echo $* && $(MAKE) clean