-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (40 loc) · 861 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
BUILD_DIR := build
COVERAGE_DIR := coverage
COVERAGE_INFO := ${COVERAGE_DIR}/coverage.info
COVERAGE_EXCLUDES := \
"*Qt*.framework*" \
"*.h" \
"*/tests/*" \
"*.moc" \
"*moc_*.cpp" \
"*/test/*" \
"*/build*/*" \
"*Xcode.app*"
.PHONY: build lint clean test docs
all: build
build:
cd build && conan install ..
cd build && cmake ..
cd build && make
clean:
test: build
cd build && make test
mkdir -p ${COVERAGE_DIR}
rm -f ${COVERAGE_INFO}
lcov --directory ${BUILD_DIR} \
--capture \
--output-file ${COVERAGE_INFO}
lcov --remove ${COVERAGE_INFO} \
--output-file ${COVERAGE_INFO} \
--quiet \
${COVERAGE_EXCLUDES}
lcov --directory ${BUILD_DIR} \
--zerocounters
genhtml --output-directory ${COVERAGE_DIR} \
--demangle-cpp \
${COVERAGE_DIR}/coverage.info
check: test
lint:
cpplint --recursive --quiet .
docs:
cd docs && make all