-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (31 loc) · 850 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
all: build
build: install
rebuild: clean install
install:
cmake -S . -B ./build
cmake --build ./build
unistall:
find ./ -name "build" -type d -exec rm -rf {} +
hash_table.a:
cmake -S ./table/ -B ./table/build
cmake --build ./table/build
self_balancing_binary_search_tree.a:
cmake -S ./binary_tree/ -B ./binary_tree/build
cmake --build ./binary_tree/build
b_plus_tree.a:
cmake -S ./tree_plus/ -B ./tree_plus/build
cmake --build ./tree_plus/build
clean: unistall
rm -rf ./lib/*
tests:
cmake -S ./test/ -B ./test/build
cmake --build ./test/build
./test/build/TEST
cppcheck: install
@cd build/; make cppcheck
clang-format: install
@cd build/; make clang-format
lcov: test
cd ./test/build; make coverage;
open ./test/build/coverage-report/index.html
.PHONY: all build rebuild unistall clean cppcheck clang-format tests lcov