.SUFFIXES: .UTR .imp SOURCE = TR-PRSD TARGET = tr SOURCES = $(shell find $(SOURCE)/ -name '*.UTR') IMPS = $(SOURCES:%.UTR=%.imp) all: $(TARGET)/ $(SOURCE).ZIP: wget -O $(SOURCE).ZIP https://sites.google.com/a/wmail.fi/greeknt/home/greeknt/$(SOURCE).ZIP?attredirects=0 $(SOURCE)/: $(SOURCE).ZIP unzip $(SOURCE).ZIP -d $(SOURCE)/ .UTR.imp: ../whnu/convert.sh $< > $@ $(SOURCE).imp: $(SOURCE)/ ../whnu/convert.sh symbgreektoutf16 $(IMPS) cat $(IMPS) > $(SOURCE).imp $(TARGET)/: $(SOURCE).imp mkdir -p $(TARGET)/ imp2vs $(SOURCE).imp -z -o $(TARGET)/ clean: rm -rf $(SOURCE).ZIP $(SOURCE) $(SOURCE).imp symbgreektoutf16 $(TARGET) symbgreektoutf16: ../../../../misc/symbgreektoutf16.c gcc -o $@ $<