This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bfd doc chew

On Mon, Apr 07, 2014 at 07:00:01PM +0930, Alan Modra wrote:
> I got tired of watching chew.c being compiled a dozen or more times

One last time-stamp.  Now none of the doc rules using move-if-change
will run unnecessarily.
    	* ($(MKDOC)): New rule, depend on chew.stamp.  Move
    	old rule to..
    	(DISTCLEANFILES): Move *.stamp..
    	* Regenerate.

diff --git a/bfd/doc/ b/bfd/doc/
index 58c9591..3f69859 100644
--- a/bfd/doc/
+++ b/bfd/doc/
@@ -76,10 +76,13 @@ MKDOC = chew$(EXEEXT_FOR_BUILD)
 AM_CPPFLAGS = -I.. -I$(srcdir)/.. -I$(srcdir)/../../include \
 	-I$(srcdir)/../../intl -I../../intl
-$(MKDOC): $(srcdir)/chew.c
+$(MKDOC): chew.stamp ; @true
+chew.stamp: $(srcdir)/chew.c
 	  $(LDFLAGS_FOR_BUILD) $(H_CFLAGS) $(AM_CPPFLAGS) $(srcdir)/chew.c; \
-	$(SHELL) $(srcdir)/../../move-if-change chw$$$$$(EXEEXT_FOR_BUILD) $@
+	$(SHELL) $(srcdir)/../../move-if-change \
+	  chw$$$$$(EXEEXT_FOR_BUILD) $(MKDOC); \
+	touch $@
 protos: libbfd.h libcoff.h bfd.h
@@ -323,11 +326,11 @@ bfdver.texi: $(srcdir)/
 noinst_TEXINFOS = bfdint.texi
 CLEANFILES = *.p *.ip
-DISTCLEANFILES = bfd.?? bfd.??? bfd.h libbfd.h libcoff.h texput.log *.stamp
+DISTCLEANFILES = bfd.?? bfd.??? bfd.h libbfd.h libcoff.h texput.log

Alan Modra
Australia Development Lab, IBM

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]