forked from ben-marshall/verilog-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (34 loc) · 1.02 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
45
46
47
48
49
#
# This is a simple top-level wrapper makefile for the rest of the project.
#
all: setup docs debug release coverage
.PHONY: docs setup clean
setup:
./bin/project.sh
docs:
$(MAKE) -C ./build/debug -B verilogparser-docs
debug:
$(MAKE) -C ./build/debug parser
release:
$(MAKE) -C ./build/release parser
coverage:
$(MAKE) -C ./build/coverage parser
clean:
$(MAKE) -C ./build/coverage clean
$(MAKE) -C ./build/debug clean
$(MAKE) -C ./build/release clean
rm -rf ./build/docs
test-all: test-debug test-release test-coverage
test-debug: debug
$(MAKE) -C ./build/debug test
test-release: release
$(MAKE) -C ./build/release test
test-coverage: coverage
$(MAKE) -C ./build/coverage test
test-coverage-report: test-coverage
cd ./build/coverage/src/CMakeFiles/verilogparser.dir/ ; \
gcov -abcf *.o ; \
lcov --directory . -c -o cov.info -t "verilogparser" ; \
genhtml -o ../../../../cov-report -t "verilogparser" --num-spaces 4 cov.info
@echo "Coverage report available in:"
@echo "./build/cov-report/index.html"