-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
53 lines (40 loc) · 1.01 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
50
51
52
.PHONY: build
build:
(./.scripts/build.sh)
.PHONY: build-ci
build-ci:
(./.scripts/build.sh ci)
.PHONY: build-debug
build-debug:
(./.scripts/build.sh debug)
.PHONY: build-analysis
build-analysis:
(./.scripts/build.sh analyze)
.PHONY: docs
docs:
(cd build; cmake --build . --target doxygen-docs ; cd .. ; rm -rf html man ; cp -r docs-build/* .)
.PHONY: install-cmocka
install-cmocka:
(./.scripts/install_cmocka.sh)
.PHONY: install-mbedtls
install-mbedtls:
(./.scripts/install_mbedtls.sh)
.PHONY: install-tinycbor
install-tinycbor:
(./.scripts/install_tinycbor.sh)
.PHONY: install-deps-ubuntu
install-deps-ubuntu: deps-ubuntu install-mbedtls
.PHONY: deps-ubuntu
deps-ubuntu:
sudo apt install doxygen -y
sudo apt install libcmocka0 libcmocka-dev -y
.PHONY: run-valgrind
run-valgrind:
(./.scripts/valgrind.sh)
.PHONY: clean
clean:
(./.scripts/clean.sh)
.PHONY: format
format:
find . -type f -name "*.c" -not -name "*_test.c" -exec clang-format -i {} \;
find . -type f -name "*.h" -exec clang-format -i {} \;