mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-22 06:07:34 +02:00
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) <[email protected]>
22 lines
753 B
Makefile
22 lines
753 B
Makefile
# Provided by configure: the module's source dir + the build top.
|
|
# defs.mak sees `srcdir` already set and skips its own srcdir derivation.
|
|
srcdir = @srcdir@
|
|
VPATH = @srcdir@
|
|
MAGICDIR = @top_builddir@
|
|
include $(MAGICDIR)/defs.mak
|
|
|
|
HTML_INSTDIR=$(INSTALL_LIBDIR)/magic/doc/html
|
|
|
|
install: $(DESTDIR)${HTML_INSTDIR}
|
|
# 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}
|
|
|
|
clean:
|
|
|