]> git.donarmstrong.com Git - lilypond.git/blob - Generate.make
partial: 0.0.39-1.jcn
[lilypond.git] / Generate.make
1 # Generate.make ?
2
3 parsheadorig=$(CCDIR)/parser.tab.h
4 parsheadnew=$(HEADERDIR)/parser.hh
5
6 #
7 # take some trouble to avoid overwriting the old y.tab.h,
8 # because otherwise all dependants would be remade.
9 $(CCDIR)/parser.cc: $(CCDIR)/parser.y
10         $(BISON) -d $<
11         mv $(CCDIR)/parser.tab.c $@
12         (if diff  $(parsheadorig) $(parsheadnew)>/dev/null; then \
13                 echo Ignoring $(parsheadorig);  \
14         else \
15                 mv $(parsheadorig) $(parsheadnew); \
16         fi )
17
18 $(parsheadnew): $(CCDIR)/parser.cc
19
20 $(HEADERDIR)/version.hh: Variables.make make_version
21         make_version $(MAJVER) $(MINVER) $(PATCHLEVEL) "$(CXX) $(CXXVER)" > $@
22
23 $(CCDIR)/%.cc: $(CCDIR)/%.y
24         $(BISON) -d $<
25         mv $(CCDIR)/$(shell basename $@ .cc ).tab.h $(HEADERDIR)/$(shell basename $@ .cc).hh
26         mv $(CCDIR)/$(shell basename $@ .cc ).tab.c $@
27
28 $(CCDIR)/%.cc: $(CCDIR)/%.l
29         $(FLEX)  -t $< > $@
30