Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (28 sloc) 727 Bytes
PROJECTNAME=jn_mavg
PROJECTVERSION=1.0
INSTALLDIR=$(prefix)/$(LIBDIR)/$(PROJECTNAME)-$(PROJECTVERSION)/ebin
LIBDIR=$(shell erl -eval 'io:format("~s~n", [code:lib_dir()])' -s init stop -noshell)
REBAR = rebar
all: app
app: deps
@$(REBAR) compile
deps:
@$(REBAR) get-deps
clean:
@$(REBAR) clean
rm -f erl_crash.dump
rm -rf .eunit
tests: clean app eunit
eunit:
@$(REBAR) eunit skip_deps=true
build-plt:
@$(DIALYZER) --build_plt \
--apps kernel stdlib sasl inets crypto public_key ssl wx mnesia
dialyze:
@$(DIALYZER) -r ebin \
-Werror_handling -Wrace_conditions -Wunmatched_returns -Wunderspecs
docs:
@$(REBAR) doc
install:
mkdir -p $(INSTALLDIR)
for f in ebin/*.beam; do install $$f $(INSTALLDIR); done