aboutsummaryrefslogtreecommitdiff
path: root/newlib/libm
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2022-05-02 13:55:13 +0100
committerJeff Johnston <jjohnstn@redhat.com>2022-05-04 17:05:24 -0400
commit3d64a500f15a9a8984e8db7c2a714c5f5086d1d3 (patch)
tree0ae4608ec0bfbd52c0ed425e4c859e73cca9f29c /newlib/libm
parent5cad308baa2edb82cdf5b46bfae369c8b6a0a846 (diff)
downloadnewlib-3d64a500f15a9a8984e8db7c2a714c5f5086d1d3.zip
newlib-3d64a500f15a9a8984e8db7c2a714c5f5086d1d3.tar.gz
newlib-3d64a500f15a9a8984e8db7c2a714c5f5086d1d3.tar.bz2
Simplify rules for creating man pages
Simplify rules for creating docbook XML used to create manpages: Updating the output using move-if-change and then unconditionally touching the .stamp file doesn't make much sense.
Diffstat (limited to 'newlib/libm')
-rw-r--r--newlib/libm/Makefile.inc8
1 files changed, 3 insertions, 5 deletions
diff --git a/newlib/libm/Makefile.inc b/newlib/libm/Makefile.inc
index de63b86..e2b6b13 100644
--- a/newlib/libm/Makefile.inc
+++ b/newlib/libm/Makefile.inc
@@ -15,15 +15,13 @@ $(LIBM_CHEWOUT_FILES): $(MKDOC)
$(AM_V_at)touch $@
%D%/targetdep.tex: %D%/targetdep.tex.stamp; @true
-%D%/libm.xml.stamp: %D%/libm.in.xml $(LIBM_CHAPTERS) $(LIBM_DOCBOOK_OUT_FILES)
+%D%/libm.xml: %D%/libm.in.xml $(LIBM_CHAPTERS) $(LIBM_DOCBOOK_OUT_FILES)
$(AM_V_at)\
for chapter in $(LIBM_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%/libm.xml: %D%/libm.xml.stamp; @true
+ $(AM_V_at)$(SHELL) $(newlib_basedir)/../move-if-change $@.tmp $@
%C%_man: %D%/libm.xml
$(AM_V_GEN)xmlto --skip-validation -o %D% --searchpath $(builddir)/%D% man -m $(srcdir)/man.xsl %D%/libm.xml
@@ -88,4 +86,4 @@ CLEANFILES += \
%D%/targetdep.tex.stamp \
$(LIBM_CHEWOUT_FILES) \
$(LIBM_DOCBOOK_OUT_FILES) \
- %D%/*.xml %D%/*.xml.stamp %D%/*.3
+ %D%/*.xml %D%/*.3