mirror of
https://github.com/ubf/ubf.git
synced 2026-04-15 09:15:17 +00:00
45 lines
838 B
Makefile
45 lines
838 B
Makefile
|
|
REBAR?=./rebar
|
|
|
|
.PHONY: all clean deps compile xref doc test eunit eqc proper \
|
|
compile-for-eunit compile-for-eqc compile-for-proper
|
|
|
|
all: compile
|
|
|
|
deps:
|
|
$(REBAR) get-deps
|
|
|
|
clean:
|
|
$(REBAR) clean -r
|
|
|
|
compile:
|
|
$(REBAR) compile
|
|
|
|
xref:
|
|
$(REBAR) xref skip_deps=true
|
|
|
|
doc:
|
|
@rm -rf README.md doc/edoc-info doc/*.md
|
|
$(REBAR) -C rebar.config.doc get-deps compile
|
|
$(REBAR) -C rebar.config.doc doc skip_deps=true
|
|
|
|
test: eunit
|
|
|
|
eunit: compile-for-eunit
|
|
$(REBAR) eunit skip_deps=true
|
|
|
|
eqc: compile-for-eqc
|
|
$(REBAR) eqc skip_deps=true
|
|
|
|
proper: compile-for-proper
|
|
@echo "rebar does not implement a 'proper' command" && false
|
|
|
|
compile-for-eunit:
|
|
$(REBAR) compile eunit compile_only=true
|
|
|
|
compile-for-eqc:
|
|
$(REBAR) -D QC -D QC_EQC compile eqc compile_only=true
|
|
|
|
compile-for-proper:
|
|
$(REBAR) -D QC -D QC_PROPER compile eqc compile_only=true
|