.SUFFIXES: .UWH .imp SOURCE = WH27PRSD TARGET = whnu SOURCES = $(shell find $(SOURCE)/ -name '*.UWH') IMPS = $(SOURCES:%.UWH=%.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)/ .UWH.imp: ./convert.sh $< > $@ $(SOURCE).imp: $(SOURCE)/ 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 $@ $<