forked from bprail/contech
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (42 loc) · 995 Bytes
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
CLEAN_DIRS=\
common/eventLib \
common/runtime \
common/taskLib \
backend/CommTracker \
backend/Statistics \
backend/Comm2 \
backend/TaskGraphFrontEnd \
backend/Heltech \
backend/Harmony \
backend/RemSync \
middle \
GRAPHVIZ_TOOLS = \
backend/DynamicCFG \
backend/TaskGraphVisualizer \
MAKE_DIRS = $(CLEAN_DIRS)
all: multimake
multimake:
for d in $(MAKE_DIRS); \
do \
echo ""; echo -e "\033[94m$$d \033[0m"; \
make -C $$d; \
if [[ $$? -ne 0 ]]; then \
echo -e "\033[91m Compilation failed! \033[0m"; \
exit 1; \
fi; \
done;
viz_backends:
for d in $(GRAPHVIZ_TOOLS); \
do \
echo ""; echo -e "\033[94m$$d \033[0m"; \
make -C $$d; \
if [[ $$? -ne 0 ]]; then \
echo -e "\033[91m Compilation failed! \033[0m"; \
exit 1; \
fi; \
done;
clean:
for d in $(CLEAN_DIRS); \
do \
make clean -C $$d; \
done; \