mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-26 00:37:43 +03:00
Rework documentation build system
Since several generated files are under version control, their
timestamps are essentially random and rebuilding documentation using
Makefile rules 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:
@@ -231,18 +231,13 @@ LDADD = $(RDL_LIBS) $(top_builddir)/libxml2.la $(THREAD_LIBS) $(Z_LIBS) $(ICONV_
|
||||
|
||||
CLEANFILES = *.tmp
|
||||
|
||||
if REBUILD_DOCS
|
||||
rebuild: examples.xml index.html
|
||||
.PHONY: rebuild
|
||||
|
||||
examples.xml: index.py $(check_PROGRAMS:=.c)
|
||||
rebuild:
|
||||
cd $(srcdir) && $(PYTHON) index.py
|
||||
$(MAKE) Makefile
|
||||
|
||||
index.html: examples.xml examples.xsl
|
||||
cd $(srcdir) && xsltproc examples.xsl examples.xml && echo "Rebuilt web page"
|
||||
cd $(srcdir) && xsltproc examples.xsl examples.xml
|
||||
-cd $(srcdir) && xmllint --valid --noout index.html
|
||||
endif
|
||||
|
||||
.PHONY: rebuild
|
||||
|
||||
install-data-local:
|
||||
$(MKDIR_P) $(DESTDIR)$(HTML_DIR)/examples
|
||||
|
||||
Reference in New Issue
Block a user