]> git.donarmstrong.com Git - lilypond.git/blob - Generate.make
701c6d79b04493d1f0168e3914df82d4fac4c7a5
[lilypond.git] / Generate.make
1
2 parsheadorig=$(CCDIR)/parser.tab.h
3 parsheadnew=$(HEADERDIR)/parser.hh
4
5 #
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 $@
15
16 $(parsheadnew): $(CCDIR)/parser.cc
17
18 $(HEADERDIR)/version.hh: Variables.make make_version
19         make_version $(MAJVER) $(MINVER) $(PATCHLEVEL) "$(CXX) $(CXXVER)" > $@
20
21 $(CCDIR)/lexer.cc: $(CCDIR)/lexer.l
22         $(FLEX)  -t $< > $@
23
24
25
26