2021-01-07 22:01:49 +01:00
|
|
|
EXAMPLES = $(wildcard *.py)
|
|
|
|
FIRSTLOGS = ${EXAMPLES:.py=_1.log}
|
|
|
|
LASTLOGS = ${EXAMPLES:.py=_2.log}
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
.SECONDAY: $(FIRSTLOGS)
|
|
|
|
|
|
|
|
all: $(LASTLOGS)
|
|
|
|
|
|
|
|
%_1.log: %.py
|
|
|
|
rm -f *.json *.pickle
|
|
|
|
python3 $< > $@
|
|
|
|
|
|
|
|
%_2.log: %.py %_1.log
|
|
|
|
python3 $< > $@
|
|
|
|
rm -f *.json *.pickle
|
|
|
|
|
|
|
|
clean:
|
2021-03-08 02:07:55 +01:00
|
|
|
@echo "\e[1m * Example logs...\e[0m"
|
|
|
|
@rm -f $(FIRSTLOGS) $(LASTLOGS) *.json *.pickle
|