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