forked from faheel/BigInt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (30 loc) · 750 Bytes
/
Makefile
File metadata and controls
37 lines (30 loc) · 750 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
35
36
37
# prevent printing of recipes
.SILENT:
# compile combined test using CMake
.PHONY: default
default: dirs build/combined.test.cpp
cd build && cmake .. && make
# generate combined test whenever a unit test changes
build/combined.test.cpp: dirs $(wildcard test/*/*.cpp)
scripts/combine_tests.sh
# run combined test
.PHONY: test
test: default
scripts/run_tests.sh
rm testing_io_stream.txt
# generate coverage report
.PHONY: coverage
coverage: build/combined.test.cpp
cd build && make combined_test_coverage
# create the single-include header file to release
.PHONY: release
release:
scripts/release.sh
# create bin and build directories
.PHONY: dirs
dirs:
mkdir -p bin build
# clean build files
.PHONY: clean
clean:
cd build && make clean