Skip to content

Commit

Permalink
move to rebar3
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitc committed Nov 6, 2015
1 parent 4509902 commit 1439ab0
Show file tree
Hide file tree
Showing 5 changed files with 167 additions and 218 deletions.
22 changes: 11 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
ebin/
*~
.eunit/
*beam
doc/*.html
doc/*.css
doc/*.png
doc/edoc-info
Emakefile
*.bat
.dialyzer_plt
_build
ebin
*.beam
*.sw*
deps
.DS_Store
erl_crash.dump
.eunit
mime.types
.rebar
*.plt
.rebar
40 changes: 13 additions & 27 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ 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 rebar)
REBAR ?= $(shell which rebar3)

all: compile

Expand All @@ -13,35 +13,21 @@ compile:
clean:
$(REBAR) clean

install: compile
mkdir -p $(DESTDIR)/lib/ibrowse-$(IBROWSE_VSN)/
cp -r ebin $(DESTDIR)/lib/ibrowse-$(IBROWSE_VSN)/

eunit_test: all
test:
$(REBAR) eunit

test: all
cd test; erl -pa ../../ibrowse/ebin -make; cd ../; \
erl -noshell -pa test -pa ebin -s ibrowse_test unit_tests \
-s ibrowse_test verify_chunked_streaming \
-s ibrowse_test test_chunked_streaming_once \
-s erlang halt

xref: all
$(REBAR) xref

docs:
erl -noshell \
-eval 'edoc:application(ibrowse, ".", []), init:stop().'

$(DIALYZER_PLT):
@echo Creating dialyzer plt file: $(DIALYZER_PLT)
@echo This may take a minute or two...
@echo
dialyzer --output_plt $(DIALYZER_PLT) --build_plt \
--apps $(DIALYZER_APPS)

dialyzer: $(DIALYZER_PLT)
@echo Running dialyzer...
@echo
dialyzer --fullpath --plt $(DIALYZER_PLT) -Wrace_conditions -Wunmatched_returns -Werror_handling -r ./ebin
$(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
Loading

0 comments on commit 1439ab0

Please sign in to comment.