blob: 983c3046679c5adcad7f02125ab83f4232b162b0 [file] [log] [blame]
PREFIX:=../
DEST:=$(PREFIX)$(PROJECT)
REBAR=./rebar
.PHONY: all edoc test clean build_plt dialyzer app
all:
@$(REBAR) prepare-deps
edoc: all
@$(REBAR) doc
test:
@rm -rf .eunit
@mkdir -p .eunit
@$(REBAR) eunit
clean:
@$(REBAR) clean
app:
@[ -z "$(PROJECT)" ] && echo "ERROR: required variable PROJECT missing" 1>&2 && exit 1 || true
@$(REBAR) -r create template=mochiwebapp dest=$(DEST) appid=$(PROJECT)