TARGETS=$(shell find -name '*.lt' | sed -E 's~\.lt~\.o~') all: $(TARGETS) %.o: %.lt ltcc $< -o target/$@ clean: cd target && rm $(TARGETS)