18 lines
340 B
Makefile
Raw Normal View History

2021-01-08 02:32:11 +01:00
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:
2021-03-08 02:07:01 +01:00
@echo "\e[1m * Example logs...\e[0m"
@rm -f $(LOGFILES)