-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
executable file
·44 lines (37 loc) · 1.04 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
34
35
36
37
38
39
40
41
42
43
44
#DIRS_EXAMPLES := $(shell ls -d examples/*)
DIRS_EXAMPLES := examples/circle examples/face_recog examples/robot examples/visual_search
.PHONY: example $(DIRS_EXAMPLES)
build:
$(MAKE) -C src
clean:
$(MAKE) clean -C src
$(MAKE) clean -C docs
install:
./configure
$(MAKE) -C src
documentation:
$(MAKE) documentation -C docs
cleanauto:
rm -f *.log *.status confdefs.h *.cache configure *~ src/Makefile bin/netcompiler
test:
$(MAKE) clean -C src
$(MAKE) -C src
@rm -f times.out
@for dir in $(DIRS_EXAMPLES) ; do \
$(MAKE) clean -C $$dir ; \
$(MAKE) test -C $$dir ; \
echo "$$dir" >> times.out ; \
grep "user" $$dir/times.out >> times.out ; \
done
@echo "Test finished. Check the execution times archive. (./times.out)"
default:
$(MAKE) clean -C src
$(MAKE) -C src
@rm -f times.out
@for dir in $(DIRS_EXAMPLES) ; do \
$(MAKE) clean -C $$dir ; \
$(MAKE) default -C $$dir ; \
echo "$$dir" >> times.out ; \
grep "user" $$dir/times.out >> times.out ; \
done
@echo "Test finished. Check the execution times archive. (./times.out)"