836b73dcf9a90141ad0923009f03d2494fdd18ca
markd
  Tue Apr 22 15:17:05 2025 -0700
Replaced shell loops in build paths of makefile to use rules.  This should address issues where errors in some rules are not reported (#35339) and also increase speed of builds using multiple cores

diff --git src/hg/encode3/makefile src/hg/encode3/makefile
index 19e07960c64..4fd1490b4b7 100644
--- src/hg/encode3/makefile
+++ src/hg/encode3/makefile
@@ -1,45 +1,18 @@
 # Build all programs in encode directory
+# much of this file is leftover from encode2
 
 # List of directories to build
 
 DIRS = \
 	encodeDataWarehouse \
 	validateManifest \
 	validateFiles
 
-# List of pipeline dirs
-PIPELINE_DIRS = \
-
-# much of this file is leftover from encode2
-#        encodeLoad \
-#        encodeValidate \
-#	../utils/automation
-
 USE_DIRS = $(DIRS)
 
-all:
-	@${MAKE} development
-	@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
-
-development:
-	@for D in ${PIPELINE_DIRS}; do \
-		 (cd $${D} && ${MAKE} development;) \
-	done
-
-beta:
-	@for D in ${PIPELINE_DIRS}; do \
-		(cd $${D} && ${MAKE} beta;)\
-	done
-
-prod: 
-	@for D in ${PIPELINE_DIRS}; do \
-		(cd $${D} && ${MAKE} prod;) \
-	done
+all: ${USE_DIRS:%=%_all}
+%_all:
+	${MAKE} -C $*
 
+# nothing to clean in hg/encode3/
 clean::
-	echo nothing to clean in hg/encode3/