lilypond-0.0.38
[lilypond.git] / Generate.make
blob5be1641e1e4dcbd786650a821f11c8b0e0ae1c0a
1 # Generate.make ?
3 parsheadorig=$(CCDIR)/parser.tab.h
4 parsheadnew=$(HEADERDIR)/parser.hh
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 )
18 $(parsheadnew): $(CCDIR)/parser.cc
20 $(HEADERDIR)/version.hh: Variables.make make_version
21 make_version $(MAJVER) $(MINVER) $(PATCHLEVEL) "$(CXX) $(CXXVER)" > $@
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 $@
28 $(CCDIR)/%.cc: $(CCDIR)/%.l
29 $(FLEX) -t $< > $@