-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
41 lines (30 loc) · 822 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
INCLUDE_DIR = ./include/ney
TEST_DIR = ./test/unittest
GPUTEST_DIR = ./test/gputest
REPORT_DIR = ./test/report
EXAMPLES_DIR = ./examples
all:
cd $(TEST_DIR) && $(MAKE)
tests:
cd $(TEST_DIR) && ./run_tests.sh
coverage:
lcov --capture --directory ./test/unittest --output-file coverage.info
lcov --remove coverage.info "gtest*" -o coverage.info
lcov --remove coverage.info "/usr/include/*" -o coverage.info
genhtml coverage.info --output-directory out
example:
cd $(EXAMPLES_DIR) && $(MAKE)
build_reports:
cd $(REPORT_DIR) && ./build.sh
run_reports:
cd $(REPORT_DIR) && python tester.py
docs:
doxygen doc/conf
clean:
rm -rf out
cd $(TEST_DIR) && $(MAKE) clean
cd $(GPUTEST_DIR) && $(MAKE) clean
cd $(EXAMPLES_DIR) && $(MAKE) clean
rm -rf $(INCLUDE_DIR)/*.gch
rm -rf doc/html
rm -f coverage.info