Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2022-05-02 15:55:14 +0300
committerJeff Johnston <jjohnstn@redhat.com>2022-05-05 00:05:41 +0300
commitd51aab2abd5ba58fd9765a0aaac00a8dbd0ee886 (patch)
treea13d6300203a4faec4ee8280f534727de4cc0e9e /newlib/libm
parent3d64a500f15a9a8984e8db7c2a714c5f5086d1d3 (diff)
Add build avoidance for 'make man'
This will generate multiple manpage files as an output, but we don't know what they will be called, so use a timestamp for build avoidance.
Diffstat (limited to 'newlib/libm')
-rw-r--r--newlib/libm/Makefile.inc9
1 files changed, 5 insertions, 4 deletions
diff --git a/newlib/libm/Makefile.inc b/newlib/libm/Makefile.inc
index e2b6b1371..699bc4caf 100644
--- a/newlib/libm/Makefile.inc
+++ b/newlib/libm/Makefile.inc
@@ -23,11 +23,12 @@ $(LIBM_CHEWOUT_FILES): $(MKDOC)
$(AM_V_GEN)xsltproc --xinclude --path $(builddir)/%D% --nonet $(srcdir)/refcontainers.xslt $< > $@.tmp
$(AM_V_at)$(SHELL) $(newlib_basedir)/../move-if-change $@.tmp $@
-%C%_man: %D%/libm.xml
+%C%_man.stamp: %D%/libm.xml
$(AM_V_GEN)xmlto --skip-validation -o %D% --searchpath $(builddir)/%D% man -m $(srcdir)/man.xsl %D%/libm.xml
-man: %C%_man
+ $(AM_V_at)touch $@
+man: %C%_man.stamp
-%C%_install-man: %C%_man
+%C%_install-man: %C%_man.stamp
$(MKDIR_P) $(DESTDIR)$(mandir)/man3
$(INSTALL_DATA) %D%/*.3 $(DESTDIR)$(mandir)/man3/
install-man: %C%_install-man
@@ -86,4 +87,4 @@ CLEANFILES += \
%D%/targetdep.tex.stamp \
$(LIBM_CHEWOUT_FILES) \
$(LIBM_DOCBOOK_OUT_FILES) \
- %D%/*.xml %D%/*.3
+ %D%/*.xml %C%_man.stamp %D%/*.3