2 # -> Rules.make: containing all compile/flex/bison/... rules (jcn)
4 parsheadorig
=$(CCDIR
)/parser.tab.h
5 parsheadnew
=$(HEADERDIR
)/parser.hh
8 # take some trouble to avoid overwriting the old y.tab.h
10 $(CCDIR
)/parser.
cc: $(CCDIR
)/parser.y
12 (if diff
$(parsheadorig
) $(parsheadnew
)>/dev
/null
; then \
13 echo Ignoring
$(parsheadorig
); \
15 mv
$(parsheadorig
) $(parsheadnew
); \
17 mv
$(CCDIR
)/parser.tab.c
$@
19 $(parsheadnew
): $(CCDIR
)/parser.
cc
21 $(HEADERDIR
)/version.hh
: Variables.make make_version
22 make_version
$(MAJVER
) $(MINVER
) $(PATCHLEVEL
) "$(CXX) $(CXXVER)" > $@
24 $(CCDIR
)/%.
cc: $(CCDIR
)/%.y
26 mv
$(CCDIR
)/$(shell basename $@ .
cc ).tab.h
$(HEADERDIR
)/$(shell basename $@ .
cc).hh
27 mv
$(CCDIR
)/$(shell basename $@ .
cc ).tab.c
$@
29 $(CCDIR
)/%.
cc: $(CCDIR
)/%.l