Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (19 sloc) 483 Bytes
VSN := 0.1
ERL ?= erl
EBIN_DIRS := $(wildcard lib/*/ebin)
APP := esmtp
all: erl docs
erl: ebin lib
@$(ERL) -pa $(EBIN_DIRS) -noinput +B \
-eval 'case make:all() of up_to_date -> halt(0); error -> halt(1) end.'
docs: $(wildcard src/*.erl)
@erl -noshell -run edoc_run application '$(APP)' '"."' "[{def, [{vsn, \"$(VSN)\"}]}]"
clean:
@echo "removing:"
@rm -fv ebin/*.beam
ebin:
@mkdir ebin
lib:
@mkdir lib
dialyzer: erl
@dialyzer -c ebin