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
@@ -74,35 +74,37 @@
 	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