From: Akim Demaille Date: Mon, 29 Jun 2009 13:02:48 +0000 (+0200) Subject: build: avoid concurrent extraction of calc++. X-Git-Tag: v2.7.90~848 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/5ece73eaa19c79d5dd40b36a2a7d38cb397c2fcd 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. --- diff --git a/ChangeLog b/ChangeLog index aa23252a..bc971360 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2009-06-29 Akim Demaille + + 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 parse.error: fix. diff --git a/examples/calc++/Makefile.am b/examples/calc++/Makefile.am index 5c29a3b7..c7045a5d 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 $@ $@.tmp + touch $@.tmp 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 $@.tmp $@ +$(calc_extracted): calc.stamp ## ------------------- ## ## Parser generation. ##