2021-01-06 22:54:21 +01:00
|
|
|
EXAMPLES = $(wildcard *.py)
|
|
|
|
LOGFILES = ${EXAMPLES:.py=.log}
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all: $(LOGFILES)
|
|
|
|
|
2021-01-11 17:46:05 +01:00
|
|
|
%server.log: %server.py
|
|
|
|
@echo -n
|
|
|
|
|
|
|
|
%client.log: %client.py
|
|
|
|
python3 $(subst client,server,$<) 1> /dev/null&
|
2021-01-06 22:54:21 +01:00
|
|
|
python3 $< > $@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(LOGFILES)
|