summaryrefslogtreecommitdiff
path: root/stepmake
diff options
context:
space:
mode:
authorDavid Kastrup <dak@gnu.org>2011-12-22 19:41:26 +0100
committerDavid Kastrup <dak@gnu.org>2011-12-24 15:12:27 +0100
commitae9b8d637bae923bf8069f5e0f9bdb327bb98559 (patch)
tree27dd1e1e66a45978dd13dfe542312ec507373f64 /stepmake
parent2f25894efd8ad242b233d5a1d07afcfa087ebab2 (diff)
Make parser.cc and parser.hh independently to lessen parallel build problems.
Diffstat (limited to 'stepmake')
-rw-r--r--stepmake/stepmake/c++-rules.make9
1 files changed, 7 insertions, 2 deletions
diff --git a/stepmake/stepmake/c++-rules.make b/stepmake/stepmake/c++-rules.make
index 25c1d1207a..a368f4f666 100644
--- a/stepmake/stepmake/c++-rules.make
+++ b/stepmake/stepmake/c++-rules.make
@@ -12,8 +12,13 @@ $(outdir)/%.lo: %.cc
$(outdir)/%.lo: $(outdir)/%.cc
$(DO_LO_DEP) $(CXX) -c $(ALL_CXXFLAGS) $(PIC_FLAGS) -o $@ $<
-$(outdir)/%.cc $(outdir)/%.hh: %.yy
- $(BISON) -d -o $(subst .hh,.cc,$@) $<
+$(outdir)/%.cc: %.yy
+ $(BISON) -o $@ $<
+
+$(outdir)/%.hh: %.yy
+ $(BISON) -o $(subst .hh,-tmp.cc,$@) -d $<
+ rm $(subst .hh,-tmp.cc,$@)
+ mv $(subst .hh,-tmp.hh,$@) $@
$(outdir)/%.cc: %.ll
$(FLEX) -Cfe -p -p -o$@ $<