public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Add build avoidance for 'make man'
@ 2022-05-05  0:37 Jeff Johnston
  0 siblings, 0 replies; only message in thread
From: Jeff Johnston @ 2022-05-05  0:37 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=d51aab2abd5ba58fd9765a0aaac00a8dbd0ee886

commit d51aab2abd5ba58fd9765a0aaac00a8dbd0ee886
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date:   Mon May 2 13:55:14 2022 +0100

    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.

Diff:
---
 newlib/libc/Makefile.inc | 9 +++++----
 newlib/libm/Makefile.inc | 9 +++++----
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/newlib/libc/Makefile.inc b/newlib/libc/Makefile.inc
index 792b50f97..21f356664 100644
--- a/newlib/libc/Makefile.inc
+++ b/newlib/libc/Makefile.inc
@@ -23,11 +23,12 @@ $(LIBC_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%/libc.xml
+%C%_man.stamp: %D%/libc.xml
 	$(AM_V_GEN)xmlto --skip-validation -o %D% --searchpath $(builddir)/%D% man -m $(srcdir)/man.xsl %D%/libc.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
@@ -67,4 +68,4 @@ CLEANFILES += \
 	%D%/targetdep.tex.stamp \
 	$(LIBC_CHEWOUT_FILES) \
 	$(LIBC_DOCBOOK_OUT_FILES) \
-	%D%/*.xml %D%/*.3
+	%D%/*.xml %C%_man.stamp %D%/*.3
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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-05  0:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-05  0:37 [newlib-cygwin] Add build avoidance for 'make man' Jeff Johnston

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).