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/utils/userApps/makefile src/utils/userApps/makefile index 62e1ae6419a..f9a84648254 100644 --- src/utils/userApps/makefile +++ src/utils/userApps/makefile @@ -1,26 +1,25 @@ kentSrc = ../.. include ${kentSrc}/inc/localEnvironment.mk include ${kentSrc}/inc/common.mk CMD_LIST = fetchChromSizes DOC_LIST = -all:: +all:: cmd_all doc_all + +cmd_all: ${CMD_LIST:%_cmd_all} +%_cmp_all: @${MKDIR} "${DESTDIR}${BINDIR}" - @for P in ${CMD_LIST}; do \ - ( rm -f "${DESTDIR}${BINDIR}/$${P}" && \ - cp $${P} "${DESTDIR}${BINDIR}" && \ - chmod +x "${DESTDIR}${BINDIR}/$${P}" && \ - echo "installed ${DESTDIR}${BINDIR}/$${P}" ) ; \ - done - @for P in ${DOC_LIST}; do \ - ( rm -f "${DESTDIR}${BINDIR}/$${P}" && \ - cp -p $${P} "${DESTDIR}${BINDIR}" && \ - echo "installed ${DESTDIR}${BINDIR}/$${P}" ) ; \ - done + rm -f "${DESTDIR}${BINDIR}/$*" + cp $* "${DESTDIR}${BINDIR}/" + chmod +x "${DESTDIR}${BINDIR}/$*" + +doc_all: ${DOC_LIST:%=%_doc_all} +%_doc_all: + rm -f "${DESTDIR}${BINDIR}/$*" + cp -p $* "${DESTDIR}${BINDIR}/" clean:: @echo "nothing to clean in userApps" -# "$Id: makefile,v 1.5 2009/10/07 18:18:38 galt Exp $"