forked from erigontech/silkworm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (22 loc) · 831 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
.PHONY: default help fmt lint_copyright lint build run_smoke_tests run_unit_tests test
SILKWORM_BUILD_DIR = build
default: build
help:
@echo "Targets:"
@echo "make fmt - reformat the code"
@echo "make lint - run code checks"
@echo "make build - build all targets"
@echo "make test - run built unit and smoke tests"
fmt:
@cmake -P cmake/cmake_format.cmake
@cmake -P cmake/format.cmake
lint_copyright:
@cmake -P cmake/copyright.cmake
lint: lint_copyright
build:
@cmake --build $(SILKWORM_BUILD_DIR) --parallel $$(cmake/parallel_jobs_count.sh)
run_smoke_tests:
@cmake/run_smoke_tests.sh $(SILKWORM_BUILD_DIR)
run_unit_tests:
@cmake/run_unit_tests.sh $(SILKWORM_BUILD_DIR) $(SILKWORM_CLANG_COVERAGE) $(SILKWORM_SANITIZE) $(SILKWORM_PROJECT_DIR)
test: run_smoke_tests run_unit_tests