7e88fd5b88b421a27e9677737bf357fbe29c0e6c
braney
  Sun Sep 6 17:16:14 2026 -0700
makefiles: take out the hand-written header dependencies

The compiler records these now, so the lines are only a second copy that can
drift.  They already had: hg/hgTables named 23 objects as depending on
hgTables.h, and thirteen more include it.  Touching that header rebuilt 23
objects before this and rebuilds 36 after, and nothing that rebuilt before
stops rebuilding.

43 lines go, in hg/hgTables, hg/hgTracks, hg/blastToPsl, hg/genePredToMafFrames,
hg/pslDiff and hg/utils/refSeqGet, along with four extraHeaders variables that
were the same thing said another way.

A hand-written line stays wherever the header is generated, by autoSql, by
stringify or by a sed rule.  On the first build there is no .d file yet, so
nothing else makes the generator run before the compile that needs its output.
That leaves hg/hgGeneRing, hg/visiGene/vgLoadMahoney, hg/qaPushQ, hg/lib and
hg/hgGateway, and trims extraHeaders down to the generated headers in
hg/pslCDnaFilter and hg/utils/overlapSelect.  Both of those were cleaned and
rebuilt from a tree with no usage.h or algo.h in it to check the ordering still
holds.  The C++ ones in optimalLeaf and hg/lib/straw stay as well, since -MMD
never sees a .cc file.

The genbank tree keeps its eleven lines untouched.  It is built by no kent
target, and it does not compile at all today: mgcStatusTbl.c fails
-Werror=format.  Nothing there could be verified, so nothing there was changed.

inc/userApp.mk now says extraHeaders is for generated headers, so the ordinary
ones do not come back.

refs #36621

diff --git src/hg/pslDiff/makefile src/hg/pslDiff/makefile
index 7c87381cdab..564945fb383 100644
--- src/hg/pslDiff/makefile
+++ src/hg/pslDiff/makefile
@@ -5,27 +5,25 @@
 MYLIBDIR = ../../lib/${MACHTYPE}
 MYLIBS =  ${MYLIBDIR}/jkhgap.a ${MYLIBDIR}/jkweb.a
 
 
 O = pslSets.o pslDiff.o
 # pslDiff.o
 A =  pslDiff
 
 $A: $O ${MYLIBS}
 	${CC} ${COPT} ${CFLAGS} -o ${DESTDIR}${BINDIR}/${A}${EXE} $O ${MYLIBS} ${L}
 	${STRIP} ${DESTDIR}${BINDIR}/${A}${EXE}
 
 compile:: ${O}
 	${CC} ${COPT} ${CFLAGS} -o ${A}${EXE} $O ${MYLIBS} ${L}
 
-pslDiff.o: pslDiff.c pslSets.h
-
 test: compile
 	cd tests && ${MAKE} test
 	rm -f ${A}${EXE}
 
 clean:
 	rm -f $O $B pslDiff
 	cd tests && ${MAKE} clean
 
 savebak:
 	savebak pslDiff makefile *.c