lilypond-0.0.32
[lilypond.git] / Generate.make
blob701c6d79b04493d1f0168e3914df82d4fac4c7a5
2 parsheadorig=$(CCDIR)/parser.tab.h
3 parsheadnew=$(HEADERDIR)/parser.hh
6 # take some trouble to avoid overwriting the old y.tab.h
7 $(CCDIR)/parser.cc: $(CCDIR)/parser.y
8 $(BISON) -d $<
9 (if diff $(parsheadorig) $(parsheadnew)>/dev/null; then \
10 echo Ignoring $(parsheadorig); \
11 else \
12 mv $(parsheadorig) $(parsheadnew); \
13 fi )
14 mv $(CCDIR)/parser.tab.c $@
16 $(parsheadnew): $(CCDIR)/parser.cc
18 $(HEADERDIR)/version.hh: Variables.make make_version
19 make_version $(MAJVER) $(MINVER) $(PATCHLEVEL) "$(CXX) $(CXXVER)" > $@
21 $(CCDIR)/lexer.cc: $(CCDIR)/lexer.l
22 $(FLEX) -t $< > $@