-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
34 lines (26 loc) · 791 Bytes
/
makefile
File metadata and controls
34 lines (26 loc) · 791 Bytes
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
all: prepare analyze build build-example
docs: build-docs
examples: prepare build build-example
run: run-example-read
grind: grind-example-read
prepare:
cmake -B staging -DCMAKE_BUILD_TYPE=Debug
clean:
rm -rf staging
build:
cmake --build staging
build-example:
cmake --build staging --target tempora-example-read
build-docs:
@echo "Building docxygen documentation to docs/html ..."
@doxygen docs/Doxyfile > docs/Doxyfile.log 2> docs/Doxyfile.err.log
run-example-read:
staging/./tempora-example-read
grind-example-read:
valgrind --leak-check=full staging/tempora-example-read
analyze:
@echo "Running static code check ..."
@cppcheck --std=c11 \
--enable=warning --enable=style \
--includes-file=etc/analyze-include-dirs.list \
--file-list=etc/analyze-source-files.list