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:
@ -41,16 +41,7 @@ EXTRA_FORMAT= \
|
||||
|
||||
EXTRA_DIST = devhelp2.xsl html.xsl
|
||||
|
||||
if REBUILD_DOCS
|
||||
rebuild:
|
||||
cd $(srcdir) && $(XSLTPROC) --nonet -o libxslt.devhelp2 devhelp2.xsl ../libxslt-api.xml
|
||||
|
||||
rebuild: libxslt.devhelp2
|
||||
.PHONY: rebuild
|
||||
|
||||
$(HTML_FILES): libxslt.devhelp2
|
||||
|
||||
libxslt.devhelp2: devhelp2.xsl html.xsl $(top_srcdir)/doc/libxslt-api.xml
|
||||
-@(if [ -x $(XSLTPROC) ] ; then \
|
||||
echo Rebuilding devhelp2 files ; \
|
||||
$(XSLTPROC) --nonet -o $(srcdir)/libxslt.devhelp2 $(srcdir)/devhelp2.xsl $(top_srcdir)/doc/libxslt-api.xml ; fi );
|
||||
|
||||
endif
|
||||
|
Reference in New Issue
Block a user