forked from nopsteam/c-cmake-raylib-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
38 lines (31 loc) · 880 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
setup:
cmake -DCMAKE_BUILD_TYPE=Debug -B build/debug
cmake -DCMAKE_BUILD_TYPE=Release -B build/release
.PHONY: setup
debug:
make --no-print-directory -C build/debug
.PHONY: debug
release:
make --no-print-directory -C build/release
.PHONY: release
run:
make --no-print-directory -C build/debug
./build/debug/bin/example_app
.PHONY: run
runrel:
make --no-print-directory -C build/debug
./build/debug/bin/example_app
.PHONY: runrel
test:
make --no-print-directory -C build/debug
make --no-print-directory -C build/debug test ARGS='--output-on-failure'
.PHONY: test
clean:
make --no-print-directory -C build/debug clean
make --no-print-directory -C build/release clean
.PHONY: clean
coverage:
cmake -DCMAKE_BUILD_TYPE=Coverage -B build/coverage
make --no-print-directory -C build/coverage -j
make --no-print-directory -C build/coverage coverage
.PHONY: coverage