16 řádky
243 B
Makefile

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:
rm -f $(LOGFILES)