34770b218ef5c3100da392a3119a3b0d50d99bfb markd Thu Feb 20 17:56:46 2025 -0800 Implement old make behavior were programs will be remade after a make clean removing the .o, even though actually program is not out of date with respect to the .c diff --git src/hg/makeDb/hgLoadMaf/makefile src/hg/makeDb/hgLoadMaf/makefile index de10238b87f..7e67da5cbb6 100644 --- src/hg/makeDb/hgLoadMaf/makefile +++ src/hg/makeDb/hgLoadMaf/makefile @@ -1,5 +1,31 @@ kentSrc = ../../.. -A = hgLoadMaf hgLoadMafSummary -include ${kentSrc}/inc/cgiLoader.mk +# recursive make uglyness (see userArp.mk) +ifeq (${PROG},) +PROGS = hgLoadMaf hgLoadMafSummary + +default:: ${PROGS:%=%_default} +%_default: + ${MAKE} default PROG=$* +compile:: ${PROGS:%=%_complie} +%_compile: + ${MAKE} compile PROG=$* +clean:: ${PROGS:%=%_clean} +%_clean:: + ${MAKE} clean PROG=$* +install: ${PROGS:%=%_} +%_install: + ${MAKE} install PROG=$* +cgi:: cgi_any +alpha:: cgi_any +beta:: cgi_any +cgi_any:: ${PROGS:%=%_cgi_any} +%_cgi_any: + ${MAKE} cgi_any PROG=$* +test:: + ${MAKE} test PROG=testing +else +A = ${PROG} +include ${kentSrc}/inc/cgiLoader.mk +endif