#alterar os valores caso haja uma versão nova CTF="7.6" CTP="7.6" CFL="7.6" all: @echo "uso: make [cfol|cpub|tudo|floresta]" tudo: make cfol cpub floresta cfol: make go TR="CF" V=$(CTF) cpub: make go TR="CP" V=$(CTP) go: @echo A gerar $(TR) versao $(V) ../bosques/corrige_ad.pl < ../bosques/Bosque_$(TR)_$(V).ad.txt > Bosque_$(TR)_$(V).ad.txt # cp ../bosques/Bosque_$(TR)_$(V).ad.txt . ./ad2penn.pl Bosque_$(TR)_$(V).ad.txt > $(TR)1.tmp ./indentrees.pl $(TR)1.tmp > Bosque_$(TR)_$(V).PennTreebank.ptb gzip -9 -c Bosque_$(TR)_$(V).PennTreebank.ptb > Bosque_$(TR)_$(V).PennTreebank.ptb.gz mv Bosque_$(TR)_$(V).PennTreebank.ptb.gz ../ficheiros floresta: @echo A gerar Floresta versao $(CFL) cp ../bosques/Floresta_$(CFL)_ad.txt . ./ad2penn.pl Floresta_$(CFL)_ad.txt > FL_1.tmp ./indentrees.pl FL_1.tmp > Floresta_$(CFL).PennTreebank.ptb gzip -9 -c Floresta_$(CFL).PennTreebank.ptb > Floresta_$(CFL).PennTreebank.ptb.gz clean: rm -f *.tmp Bosq* *~