[PATCH 4/5 v3] newlib: move man page generation into top-level build
Jon Turney
jon.turney@dronecode.org.uk
Tue Feb 1 14:37:48 GMT 2022
On 01/02/2022 06:21, Mike Frysinger wrote:
> +%D%/libc.xml.stamp: %D%/libc.in.xml $(LIBC_CHAPTERS) $(LIBC_DOCBOOK_OUT_FILES)
> + $(AM_V_at)\
> + for chapter in $(LIBC_CHAPTERS); do \
> + $(TEXI2DOCBOOK) < $(srcdir)/$$chapter > %D%/`basename $${chapter%.tex}`.xml || exit 1; \
> + done
> + $(AM_V_GEN)xsltproc --xinclude --path $(builddir)/%D% --nonet $(srcdir)/refcontainers.xslt $< > $@.tmp
> + $(AM_V_at)$(SHELL) $(newlib_basedir)/../move-if-change $@.tmp $(@:.stamp=)
> + $(AM_V_at)touch $@
> +%D%/libc.xml: %D%/libc.xml.stamp; @true
This doesn't seem right.
This rule produces a single output with a definite name 'lib.xml', so
there's no need for a timestamp file?
More information about the Newlib
mailing list