2026-07-22 20:39:21 +02:00
|
|
|
# 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@
|
2017-04-25 14:41:48 +02:00
|
|
|
include $(MAGICDIR)/defs.mak
|
|
|
|
|
|
2020-01-28 19:10:31 +01:00
|
|
|
HTML_INSTDIR=$(INSTALL_LIBDIR)/magic/doc/html
|
2017-04-25 14:41:48 +02:00
|
|
|
|
|
|
|
|
install: $(DESTDIR)${HTML_INSTDIR}
|
2026-07-22 20:57:43 +02:00
|
|
|
# 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 - )
|
2017-04-25 14:41:48 +02:00
|
|
|
|
|
|
|
|
$(DESTDIR)${HTML_INSTDIR}:
|
|
|
|
|
${SCRIPTS}/mkdirs $(DESTDIR)${HTML_INSTDIR}
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
|
|