lilypond-0.0.31
[lilypond.git] / Generate.make
blob08d53ba78cce47eb666bbae256822c5a703f267d
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 leaving $(parsheadnew); \
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 $< > $@