1940e5051adfdd71d35c9a329cd8e3bc407421a1
max
  Wed Aug 16 05:22:45 2023 -0700
fixing kent-core problem where a lot of tools were missing, refs #30812

diff --git src/hg/mouseStuff/makefile src/hg/mouseStuff/makefile
index 5a31f7a..9a9e942 100644
--- src/hg/mouseStuff/makefile
+++ src/hg/mouseStuff/makefile
@@ -1,108 +1,110 @@
 # 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 \
 	chainBridge \
 	chainCleaner \
 	chainFilter \
 	chainMergeSort \
 	chainNet \
 	chainPreNet \
 	chainScore \
 	chainSort \
 	chainSplit \
 	chainStitchId \
 	chainSwap \
 	chainToAxt \
 	chainToPsl \
 	chainToPslBasic \
 	lavToAxt \
 	lavToPsl \
 	mafCoverage \
 	mafFetch \
 	mafRanges \
 	mafNoAlign \
 	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 \
 	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}
+# kent-core doesn't contain all utils, so tolerate missing directories
 %.all:
-	cd $* && echo $* && ${MAKE}
+	if test -d $* ; then cd $* && echo $* && $(MAKE) ; fi
 
 userApps: $(UTILS_APPLIST:%=%.userApp)
+# kent-core doesn't contain all utils, so tolerate missing directories
 %.userApp:
-	cd $* && echo $* && $(MAKE)
+	if test -d $* ; then cd $* && echo $* && $(MAKE) ; fi
 
 clean:: $(USE_DIRS:%=%.cleanAll)
 %.cleanAll:
-	cd $* && echo $* && $(MAKE) clean
+	if test -d $* ; then cd $* && echo $* && $(MAKE) clean ; fi
 
 clean::
 	cd simpleChain && ${MAKE} clean
 
 testAll: $(USE_DIRS:%=%.testAll)
 
 %.testAll:
 	@test -s $*/tests/makefile && (echo $*; cd $* && $(MAKE) test) || true
 
 test:: testAll