CTF="8.0" CTP="8.0" CFL="8.0" all: @echo "uso: make [cfol|cpub|tudo|juntar|mini|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) gunzip -c ../ficheiros/Bosque_$(TR)_$(V).TigerXML.xml.gz > Bosque_$(TR)_$(V).TigerXML.xml #gunzip -c ../Bosque_$(TR)_$(V).TigerXML.xml.gz > Bosque_$(TR)_$(V).TigerXML.xml cp ../metadados/descEtiquetas.txt . perl tigerXML2SQL.pl Bosque_$(TR)_$(V).TigerXML.xml excluir_$(TR).txt > Bosque_$(TR)_$(V).sql gzip -9 -c Bosque_$(TR)_$(V).sql > Bosque_$(TR)_$(V).sql.gz mv *.gz ../ficheiros/ floresta: @echo A gerar Floresta versao $(CFL) gunzip -c ../ficheiros/Floresta_$(CFL).TigerXML.xml.gz > Floresta_$(CFL).TigerXML.xml #gunzip -c ../Floresta_$(CFL).TigerXML.xml.gz > Floresta_$(CFL).TigerXML.xml cp ../metadados/descEtiquetas.txt . perl tigerXML2SQL.pl Floresta_$(CFL).TigerXML.xml excluir_FL.txt > Floresta_$(CFL).sql gzip -9 -c Floresta_$(CFL).sql > Floresta_$(CFL).sql.gz mini: #mini floresta @echo A gerar Mini floresta gunzip -c ../ficheiros/Bosque_Mini.TigerXML.xml.gz > Bosque_Mini.TigerXML.xml cp ../metadados/descEtiquetas.txt . perl tigerXML2SQL.pl Bosque_Mini.TigerXML.xml excluir_CP.txt > Bosque_Mini.sql gzip -9 -c Bosque_Mini.sql > Bosque_Mini.sql.gz clean: rm -f *.tmp Bosq* *~ *.xml *.sql descEtiquetas.txt