From 54a5a919bb63fcf027046ddb80ffe347d82fe2e6 Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Wed, 22 Jul 2026 18:57:43 +0000 Subject: [PATCH] build: doc/html install ships only content, not build files The doc/html install tar'd the whole $(srcdir), so it shipped Makefile.in (always) and, for an in-tree build, the config.status-generated Makefile, into $CAD_ROOT/magic/doc/html/. That also made the install differ in-tree (377 files) vs out-of-tree (376). Exclude ./Makefile and ./Makefile.in from the tar. The install now contains only the 148 HTML files (+ subdirs) and is identical in-tree and out-of-tree (375 files). Co-Authored-By: Claude Opus 4.8 (1M context) --- doc/html/Makefile.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/html/Makefile.in b/doc/html/Makefile.in index 432973a2..ec7713f3 100644 --- a/doc/html/Makefile.in +++ b/doc/html/Makefile.in @@ -8,7 +8,11 @@ include $(MAGICDIR)/defs.mak HTML_INSTDIR=$(INSTALL_LIBDIR)/magic/doc/html install: $(DESTDIR)${HTML_INSTDIR} - tar -C $(srcdir) -cf - . | (cd $(DESTDIR)${HTML_INSTDIR}; tar xf - ) + # Ship only the HTML content, not the build files. $(srcdir) holds + # Makefile.in (always) and, for an in-tree build, the config.status-generated + # Makefile; excluding both keeps the install identical in-tree vs out-of-tree. + tar -C $(srcdir) --exclude=./Makefile --exclude=./Makefile.in -cf - . \ + | (cd $(DESTDIR)${HTML_INSTDIR}; tar xf - ) $(DESTDIR)${HTML_INSTDIR}: ${SCRIPTS}/mkdirs $(DESTDIR)${HTML_INSTDIR}