2016-09-08 21:13:10 +04:00
|
|
|
|
2017-04-05 20:24:26 +04:00
|
|
|
DIR := \
|
2016-09-08 21:13:10 +04:00
|
|
|
utils \
|
2017-04-05 20:24:26 +04:00
|
|
|
shell \
|
2017-04-06 00:40:02 +04:00
|
|
|
p2p \
|
|
|
|
proto_alpha
|
2017-04-05 20:24:26 +04:00
|
|
|
|
|
|
|
all: build run
|
|
|
|
|
|
|
|
.PHONY: build run test
|
|
|
|
build:
|
|
|
|
${MAKE} -C lib build
|
|
|
|
${MAKE} ${addprefix build-,${DIR}}
|
|
|
|
run:
|
|
|
|
${MAKE} ${addprefix run-,${DIR}}
|
|
|
|
${MAKE} run-basic.sh
|
|
|
|
clean:
|
|
|
|
${MAKE} -C lib clean
|
|
|
|
${MAKE} ${addprefix clean-,${DIR}}
|
|
|
|
|
|
|
|
${addprefix build-,${DIR}}: build-%:
|
|
|
|
${MAKE} -C $* build
|
|
|
|
${addprefix run-,${DIR}}: run-%:
|
|
|
|
${MAKE} -C $* run
|
|
|
|
${addprefix clean-,${DIR}}: clean-%:
|
|
|
|
${MAKE} -C $* clean
|
|
|
|
|
|
|
|
run-basic.sh:
|
2016-09-08 21:13:10 +04:00
|
|
|
./test-basic.sh
|