25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.1 KiB

14 년 전
14 년 전
  1. IBROWSE_VSN = $(shell sed -n 's/.*{vsn,.*"\(.*\)"}.*/\1/p' src/ibrowse.app.src)
  2. DIALYZER_PLT=$(CURDIR)/.dialyzer_plt
  3. DIALYZER_APPS=erts kernel stdlib ssl crypto public_key asn1 compiler hipe edoc gs syntax_tools inets xmerl runtime_tools mnesia
  4. all: compile dialyzer
  5. compile:
  6. ./rebar compile
  7. clean:
  8. ./rebar clean
  9. install: compile
  10. mkdir -p $(DESTDIR)/lib/ibrowse-$(IBROWSE_VSN)/
  11. cp -r ebin $(DESTDIR)/lib/ibrowse-$(IBROWSE_VSN)/
  12. test: all
  13. ./rebar eunit
  14. erl -noshell -pa .eunit -pa test -s ibrowse -s ibrowse_test unit_tests \
  15. -s ibrowse_test verify_chunked_streaming \
  16. -s ibrowse_test test_chunked_streaming_once \
  17. -s erlang halt
  18. xref: all
  19. ./rebar xref
  20. docs:
  21. erl -noshell \
  22. -eval 'edoc:application(ibrowse, ".", []), init:stop().'
  23. $(DIALYZER_PLT):
  24. @echo Creating dialyzer plt file: $(DIALYZER_PLT)
  25. @echo This may take a minute or two...
  26. @echo
  27. dialyzer --output_plt $(DIALYZER_PLT) --build_plt \
  28. --apps $(DIALYZER_APPS)
  29. dialyzer: $(DIALYZER_PLT)
  30. @echo Running dialyzer...
  31. @echo
  32. dialyzer --fullpath --plt $(DIALYZER_PLT) -Wrace_conditions -Wunmatched_returns -Werror_handling -r ./ebin