Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(32)

Issue 13466043: Keep bison-generated files in sync. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by Julien Rioux
Modified:
10 years, 7 months ago
Reviewers:
dak, lemzwerg
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Keep bison-generated files in sync. Use a single rule to build header and source files from the syntax file, thus avoiding any possibility to have `make' rebuild one but not the other, which might happen if the syntax and target files have almost the same but slightly differing timestamps. See http://www.mail-archive.com/bug-lilypond@gnu.org/msg37081.html

Patch Set 1 #

Patch Set 2 : Add explicit dependencies on parser.hh #

Total comments: 5

Patch Set 3 : Respond to review comments. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -15 lines) Patch
M stepmake/stepmake/c++-rules.make View 1 2 1 chunk +2 lines, -7 lines 1 comment Download
M stepmake/stepmake/c-rules.make View 1 2 1 chunk +2 lines, -8 lines 0 comments Download

Messages

Total messages: 7
Julien Rioux
Add explicit dependencies on parser.hh
10 years, 8 months ago (2013-09-02 10:59:10 UTC) #1
lemzwerg
LGTM.
10 years, 8 months ago (2013-09-02 17:18:59 UTC) #2
dak
https://codereview.appspot.com/13466043/diff/2001/stepmake/stepmake/c++-rules.make File stepmake/stepmake/c++-rules.make (right): https://codereview.appspot.com/13466043/diff/2001/stepmake/stepmake/c++-rules.make#newcode16 stepmake/stepmake/c++-rules.make:16: $(BISON) -o $(subst .hh,.cc,$@) -d $< Han-Wen's version was ...
10 years, 8 months ago (2013-09-02 17:46:15 UTC) #3
Julien Rioux
See http://code.google.com/p/lilypond/issues/detail?id=3528 https://codereview.appspot.com/13466043/diff/2001/stepmake/stepmake/c++-rules.make File stepmake/stepmake/c++-rules.make (right): https://codereview.appspot.com/13466043/diff/2001/stepmake/stepmake/c++-rules.make#newcode16 stepmake/stepmake/c++-rules.make:16: $(BISON) -o $(subst .hh,.cc,$@) -d $< On ...
10 years, 8 months ago (2013-09-02 17:59:43 UTC) #4
dak
https://codereview.appspot.com/13466043/diff/2001/lily/GNUmakefile File lily/GNUmakefile (right): https://codereview.appspot.com/13466043/diff/2001/lily/GNUmakefile#newcode69 lily/GNUmakefile:69: $(outdir)/score.o: $(outdir)/parser.hh The additional dependencies here appear all wrong. ...
10 years, 8 months ago (2013-09-02 18:21:42 UTC) #5
Julien Rioux
Respond to review comments.
10 years, 8 months ago (2013-09-02 18:42:50 UTC) #6
dak
10 years, 8 months ago (2013-09-03 11:10:17 UTC) #7
https://codereview.appspot.com/13466043/diff/12001/stepmake/stepmake/c++-rule...
File stepmake/stepmake/c++-rules.make (right):

https://codereview.appspot.com/13466043/diff/12001/stepmake/stepmake/c++-rule...
stepmake/stepmake/c++-rules.make:16: $(BISON) -d -o $(outdir)/$*.cc $<
It's somewhat disillusioning, but if I do a diff on my multi-commit series of
patches for this issue, I arrive at exactly the same one-liner.  Except that I
still have an additional space before $< like in the original.  But then the
other uses of $< in this file don't have this space either, so LGTM.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b