12345678910111213141516 |
- EXAMPLES = $(wildcard *.py)
- LOGFILES = ${EXAMPLES:.py=.log}
-
- .PHONY: all
- all: $(LOGFILES)
-
- %server.log: %server.py
- @echo -n
-
- %client.log: %client.py
- python3 $(subst client,server,$<) 1> /dev/null&
- python3 $< > $@
-
- clean:
- @echo "\e[1m * Example logs...\e[0m"
- @rm -f $(LOGFILES)
|