-
Notifications
You must be signed in to change notification settings - Fork 51
/
Makefile
53 lines (38 loc) · 858 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
51
all: dirs theory mocks
dirs: | lib bin include
lib bin include:
mkdir -p $@
theory: | dirs
$(MAKE) -C theory
mocks: | dirs
$(MAKE) -C mocks
install: | dirs
$(MAKE) -C theory install
$(MAKE) -C mocks install
libs: | dirs
$(MAKE) -C theory libs
$(MAKE) -C mocks libs
tests:
$(MAKE) -C theory tests
$(MAKE) -C mocks tests
.PHONY: clean celna clena celan theory mocks install distclean realclean libs lib
distclean:realclean
distclena:realclean
realclena:realclean
realclean:|dirs
$(MAKE) -C theory distclean
$(MAKE) -C mocks distclean
@{\
if [ 0 -eq $$(ls -1 lib/lib*.a 2>/dev/null | wc -l) ]; then \
echo "No static libs in lib/. Removing defs.h " ;\
rm -f include/defs.h;\
fi;\
}
$(MAKE) -C utils clean
$(MAKE) -C io clean
clean:
$(MAKE) -C theory clean
$(MAKE) -C mocks clean
clena: clean
celan: clean
celna: clean