sinclude $(GTLANG)/rules.mk COMPILER = twolc #-utf8 RULESRC = $(GTLANG)/src/twol-$(GTLANG).txt RULEBIN = $(GTLANG)/bin/twol-$(GTLANG).bin DESCBIN = $(GTLANG)/bin/twol-$(GTLANG)-descriptive.bin HYPHBIN = $(GTLANG)/bin/twol-$(GTLANG)-hyph.bin # The second goal is to build twol-smX.bin # This goal depends on twol-smX.txt twol: $(RULEBIN) $(RULEBIN): $(RULESRC) @echo @echo "*** Building $(RULEBIN) ***" ; @echo $(M4) $(M4FLAGS) $< > tmp/twol-$(GTLANG)-tmp.txt @printf "read-grammar tmp/twol-$(GTLANG)-tmp.txt \n\ compile \n\ save-binary $@ \n\ quit \n" > tmp/twol-$(GTLANG)-script $(COMPILER) < tmp/twol-$(GTLANG)-script @rm -f tmp/twol-$(GTLANG)-script # Removing the flag -DSHORTCOMP, as a test. Old line: # $(M4) $(M4FLAGS) -DSHORTCOMP -DDIPHSIMPL $< > tmp/twol-$(GTLANG)-tmp.txt twol-descriptive: $(DESCBIN) $(DESCBIN): $(RULESRC) @echo @echo "*** Building $(DESCBIN) ***" ; @echo $(M4) $(M4FLAGS) -DDIPHSIMPL $< > tmp/twol-$(GTLANG)-tmp.txt @printf "read-grammar tmp/twol-$(GTLANG)-tmp.txt \n\ compile \n\ save-binary $@ \n\ quit \n" > tmp/twol-$(GTLANG)-script $(COMPILER) < tmp/twol-$(GTLANG)-script @rm -f tmp/twol-$(GTLANG)-script twol-hyph: $(HYPHBIN) $(HYPHBIN): $(RULESRC) @echo @echo "*** Building $(HYPHBIN) ***" ; @echo $(M4) $(M4FLAGS) -DHYPHENATE $< > tmp/twol-hyph-$(GTLANG)-tmp.txt @printf "read-grammar tmp/twol-hyph-$(GTLANG)-tmp.txt \n\ compile \n\ save-binary $@ \n\ quit \n" > tmp/twol-$(GTLANG)-hyph-script $(COMPILER) < tmp/twol-$(GTLANG)-hyph-script @rm -f tmp/twol-$(GTLANG)-hyph-script