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
11 mv $(CCDIR)/parser.tab.c $@
12 (if diff $(parsheadorig) $(parsheadnew)>/dev/null; then \
13 echo Ignoring $(parsheadorig); \
15 mv $(parsheadorig) $(parsheadnew); \
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
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