forked from mixbytes/eosio.contracts
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
50 lines (42 loc) · 1.26 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
contracts_ver := $(shell git describe --tags --dirty)
default: help
.PHONY: help
help:
@echo "Targets:"
@echo
@echo " build : build contracts & tests"
@echo
@echo " run-unit-tests : run all unit tests"
@echo " run-verbose-test : run particular test with maximal verbosity;"
@echo " e.g.: make t=test1 run-verbose-test"
@echo
@echo " docs : generate doxygen documentation"
@echo " clean : clean build/"
@echo " tags : generate tags file via ctags"
.PHONY: build
build:
./cicd/build.sh --build-type Debug --build-tests
.PHONY: run-unit-tests
run-unit-tests:
./build/tests/unit_tests -l message -p
.PHONY: run-verbose-test
run-verbose-test:
./build/tests/unit_tests -l all -r detailed -t tests/"$(t)" -- --verbose
# see also `cicd/build.sh docs'
.PHONY: docs
docs:
mkdir -p build/docs/doxygen
env \
DOXY_CONTRACTS_VERSION="$(contracts_ver)" \
DOXY_DOC_DEST_DIR=build/docs/doxygen \
DOXY_DOC_INPUT_DIRS="contracts/ tests/" \
DOXY_HAVE_DOT=YES \
envsubst '$$DOXY_CONTRACTS_VERSION $$DOXY_DOC_DEST_DIR $$DOXY_DOC_INPUT_DIRS $$DOXY_HAVE_DOT' \
< doxyfile.in > build/doxyfile
doxygen build/doxyfile
.PHONY: clean
clean:
rm -rf build/*
.PHONY: tags
tags:
ctags -R --exclude=build .