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/inc/cgiLoader.mk src/inc/cgiLoader.mk index 181faca2d8a..07f0a3aaa31 100644 --- src/inc/cgiLoader.mk +++ src/inc/cgiLoader.mk @@ -2,28 +2,29 @@ # make rules for programs that CGI loaders. # # These are all userApps as well and this includes userApps.mk # # kentSrc = ../.. # A = aveCols # include ${kentSrc}/inc/cgiLoader.mk # ######################################################################## include ${kentSrc}/inc/userApp.mk include ${kentSrc}/inc/cgiVars.mk # this target uses CGI_BIN_DEST set in cgiVars.mk to do any of the CGI targers -cgi_any:: compile +cgi_any:: compile ${SQL_FILES:%=%_sql_install} chmod a+rx ${A}${EXE} ${MKDIR} ${CGI_LOADER_DEST} chmod a+rx ${A}${EXE} mv -f ${A}${EXE} ${CGI_LOADER_DEST}/ - for F in ${SQL_FILES}; do \ - B=`basename $$F` ; \ - cp -fp --remove-destination $$F ${CGI_LOADER_DEST}/$$B ; \ - done + + +%_sql_install: + @${MKDIR} ${CGI_LOADER_DEST} + cp -fp --remove-destination $* ${CGI_LOADER_DEST}/ cgi:: cgi_any alpha:: cgi_any beta:: cgi_any