1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-07-29 15:41:13 +03:00

Rework documentation build system

Since several generated files are under version control, their
timestamps are essentially random and rebuilding documentation using
Makefile dependencies can't work reliably. Simply add a phony rebuild
target that regenerates the whole documentation and other files
unconditionally.

    make -C doc rebuild
This commit is contained in:
Nick Wellnhofer
2022-03-30 23:45:55 +02:00
parent 8622c46160
commit b3fdf8a966
4 changed files with 14 additions and 62 deletions

View File

@ -23,16 +23,7 @@ EXTRA_FORMAT= \
EXTRA_DIST = devhelp2.xsl html.xsl
if REBUILD_DOCS
rebuild:
cd $(srcdir) && $(XSLTPROC) --nonet -o libexslt.devhelp2 devhelp2.xsl ../libexslt-api.xml
rebuild: libexslt.devhelp2
.PHONY: rebuild
$(HTML_FILES): libexslt.devhelp2
libexslt.devhelp2: devhelp2.xsl html.xsl $(top_srcdir)/doc/EXSLT/libexslt-api.xml
-@(if [ -x $(XSLTPROC) ] ; then \
echo Rebuilding devhelp2 files ; \
$(XSLTPROC) --nonet -o $(srcdir)/libexslt.devhelp2 $(srcdir)/devhelp2.xsl $(top_srcdir)/doc/EXSLT/libexslt-api.xml ; fi );
endif