mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-10 12:53:03 +00:00
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.
Cherry-picked from 5ece73eaa1.
This commit is contained in:
@@ -1,3 +1,12 @@
|
|||||||
|
2009-06-29 Akim Demaille <demaille@gostai.com>
|
||||||
|
|
||||||
|
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-27 Alex Rozenman <rozenman@gmail.com>
|
2009-06-27 Alex Rozenman <rozenman@gmail.com>
|
||||||
|
|
||||||
Implement support for named symbol references.
|
Implement support for named symbol references.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
## Process this file with automake to produce Makefile.in -*-Makefile-*-
|
## Process this file with automake to produce Makefile.in -*-Makefile-*-
|
||||||
## Copyright (C) 2005, 2006 Free Software Foundation, Inc.
|
## Copyright (C) 2005, 2006, 2009 Free Software Foundation, Inc.
|
||||||
|
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# 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
|
# 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
|
doc = $(top_srcdir)/doc/bison.texinfo
|
||||||
extexi = $(top_srcdir)/examples/extexi
|
extexi = $(top_srcdir)/examples/extexi
|
||||||
# Extract in src.
|
# Extract in src.
|
||||||
$(calc_extracted): $(doc) $(extexi)
|
calc.stamp: $(doc) $(extexi)
|
||||||
|
rm -f $@ $@.tmp
|
||||||
|
touch $@.tmp
|
||||||
cd $(srcdir) && \
|
cd $(srcdir) && \
|
||||||
$(AWK) -f ../extexi -v VERSION="$(VERSION)" \
|
$(AWK) -f ../extexi -v VERSION="$(VERSION)" \
|
||||||
../../doc/bison.texinfo -- calc++-parser.yy \
|
../../doc/bison.texinfo -- calc++-parser.yy \
|
||||||
calc++-scanner.ll calc++.cc calc++-driver.hh calc++-driver.cc
|
calc++-scanner.ll calc++.cc calc++-driver.hh calc++-driver.cc
|
||||||
|
mv $@.tmp $@
|
||||||
|
|
||||||
|
$(calc_extracted): calc.stamp
|
||||||
|
|
||||||
## ------------------- ##
|
## ------------------- ##
|
||||||
## Parser generation. ##
|
## Parser generation. ##
|
||||||
|
|||||||
Reference in New Issue
Block a user