abnfc/Makefile
2020-01-28 11:53:19 +03:00

54 lines
970 B
Makefile

REBAR=$(shell which rebar3)
.PHONY: all clean deps compile xref doc test eunit eqc proper triq \
compile-for-eunit compile-for-eqc compile-for-proper compile-for-triq
all: compile
deps:
$(REBAR) get-deps
clean:
$(REBAR) clean
compile:
$(REBAR) compile
xref:
$(REBAR) xref
dialyze:
$(REBAR) dialyzer
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
eqc: compile-for-eqc
$(REBAR) eqc
proper: compile-for-proper
@echo "rebar does not implement a 'proper' command" && false
triq: compile-for-triq
$(REBAR) triq
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
compile-for-triq:
$(REBAR) -D QC -D QC_TRIQ compile triq compile_only=true