bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] master: build: avoid concurrent extraction of calc++.


From: Akim Demaille
Subject: [PATCH] master: build: avoid concurrent extraction of calc++.
Date: Mon, 29 Jun 2009 15:02:48 +0200

        * examples/calc++/Makefile.am (calc.stamp): New.
        Depend on it to create the sources of calc++ so that concurrent
        builds don't launch several "extexi" in parallel.
        Not only this is inefficient, this also builds incorrect sources
        with several extractions mixed together.
---
 ChangeLog                   |    9 +++++++++
 examples/calc++/Makefile.am |    8 ++++++--
 2 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index aa23252..bc97136 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2009-06-29  Akim Demaille  <address@hidden>
 
+       build: avoid concurrent extraction of calc++.
+       * examples/calc++/Makefile.am (calc.stamp): New.
+       Depend on it to create the sources of calc++ so that concurrent
+       builds don't launch several "extexi" in parallel.
+       Not only this is inefficient, this also builds incorrect sources
+       with several extractions mixed together.
+
+2009-06-29  Akim Demaille  <address@hidden>
+
        parse.error: fix.
        * data/bison.m4: Move code related to specific variables after the
        definition of the variable-maintaining macros so that we don't
diff --git a/examples/calc++/Makefile.am b/examples/calc++/Makefile.am
index 5c29a3b..c7045a5 100644
--- a/examples/calc++/Makefile.am
+++ b/examples/calc++/Makefile.am
@@ -1,5 +1,5 @@
 ## Process this file with automake to produce Makefile.in -*-Makefile-*-
-## Copyright (C) 2005, 2006, 2008 Free Software Foundation, Inc.
+## Copyright (C) 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -31,12 +31,16 @@ $(BISON): $(BISON_IN)
 doc = $(top_srcdir)/doc/bison.texinfo
 extexi = $(top_srcdir)/examples/extexi
 # Extract in src.
-$(calc_extracted): $(doc) $(extexi)
+calc.stamp: $(doc) $(extexi)
+       rm -f $@ address@hidden
+       touch address@hidden
        cd $(srcdir) && \
           $(AWK) -f ../extexi -v VERSION="$(VERSION)" \
             ../../doc/bison.texinfo -- calc++-parser.yy \
             calc++-scanner.ll calc++.cc calc++-driver.hh calc++-driver.cc
+       mv address@hidden $@
 
+$(calc_extracted): calc.stamp
 
 ## ------------------- ##
 ## Parser generation.  ##
-- 
1.6.3.3





reply via email to

[Prev in Thread] Current Thread [Next in Thread]