blob: 918f33bf0809b99be71e6123ba15c1b61f51c2d5 [file] [log] [blame]
IBROWSE_VSN = $(shell sed -n 's/.*{vsn,.*"\(.*\)"}.*/\1/p' src/ibrowse.app.src)
DIALYZER_PLT=$(CURDIR)/.dialyzer_plt
DIALYZER_APPS=erts kernel stdlib ssl crypto public_key
REBAR ?= $(shell which rebar3)
all: compile
compile:
$(REBAR) compile
clean:
$(REBAR) clean
test:
$(REBAR) eunit
xref: all
$(REBAR) xref
docs:
$(REBAR) edoc
dialyzer:
$(REBAR) dialyzer
install: compile
mkdir -p $(DESTDIR)/lib/ibrowse-$(IBROWSE_VSN)/
cp -r _build/lib/default/ibrowse/ebin $(DESTDIR)/lib/ibrowse-$(IBROWSE_VSN)/
.PHONY: test docs