-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
32 lines (26 loc) · 1 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
pprintf = @printf "\n\033[36m<><>\033[39m \033[1m%s\033[0m \033[36m<><><><><><><><><><><><><><><><><><><><><><>\033[39m 🚀\n" "$(1)"
p_update = @printf "\033[33m ↻\033[39m \033[89m%s\033[39m\n" "$(1)"
p_add = @printf "\033[32m ↗\033[39m \033[89m%s\033[39m\n" "$(1)"
p_remove = @printf "\033[31m ↘\033[39m \033[89m%s\033[39m\n" "$(1)"
p_dot = @printf "\033[32m ∗\033[39m \033[89m%s\033[39m\n" "$(1)"
p_dot_red = @printf "\033[31m ∗\033[39m \033[89m%s\033[39m\n" "$(1)"
.PHONY: build test test-coverage clean
build:
$(call pprintf,Building project)
dune build Infrared/main.exe
cp _build/default/Infrared/main.exe bin/infrared.exe
$(call p_dot,Done.)
test:
$(call pprintf,Running tests for project)
make test-coverage
$(call p_dot,Done.)
test-coverage:
$(call pprintf,Testing code coverage)
sh test-coverage/Parser/run.sh
test-coverage-verbose:
$(call pprintf,Testing code coverage)
sh test-coverage/Parser/run.sh --verbose
clean:
$(call pprintf,Cleaning project)
dune clean
$(call p_dot,Done.)