-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (24 loc) · 1.07 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
NAME = tapl
default: usage
usage:
@echo "Usage: "
@echo " "
@echo " make command "
@echo " "
@echo "The commands are: "
@echo " "
@echo " $(MODULES) "
@echo " "
@echo "E.g.: make arith target=test "
@echo " "
MODULES = $(shell find tapl -type d |grep / |awk -F '/' '{ print $$2; }' |sort)
target = all test
$(MODULES):
cd $(NAME)/$@ && make $(target)
.PHONY: clean disclean doc
distclean: clean
find . -name \*~ -type f |xargs -I {} rm -f {}
find . -type f |grep -E "\._.*" |xargs -I {} rm -f {}
LAZY = all format test clean
$(LAZY):
@find tapl -type d -depth 1 |sort |grep / |xargs -I {} sh -c 'echo ---- {} ---- && cd {} && make $@'