12 lines
147 B
Makefile
Raw Normal View History

2021-01-03 21:04:15 +01:00
EXAMPLES = $(wildcard *.py)
LOGFILES = ${EXAMPLES:.py=.log}
.PHONY: all
all: $(LOGFILES)
%.log: %.py
python3 $< > $@
clean:
2021-01-03 22:16:59 +01:00
rm -f $(LOGFILES)