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

40 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:
  5. ./rebar compile
  6. clean:
  7. ./rebar clean
  8. install: all
  9. mkdir -p $(DESTDIR)/lib/ibrowse-$(IBROWSE_VSN)/
  10. cp -r ebin $(DESTDIR)/lib/ibrowse-$(IBROWSE_VSN)/
  11. test: all
  12. ./rebar eunit
  13. erl -noshell -pa .eunit -pa test -s ibrowse -s ibrowse_test unit_tests \
  14. -s ibrowse_test verify_chunked_streaming \
  15. -s ibrowse_test test_chunked_streaming_once \
  16. -s erlang halt
  17. xref: all
  18. ./rebar xref
  19. docs:
  20. erl -noshell \
  21. -eval 'edoc:application(ibrowse, ".", []), init:stop().'
  22. $(DIALYZER_PLT):
  23. @echo Creating dialyzer plt file: $(DIALYZER_PLT)
  24. @echo This may take a minute or two...
  25. @echo
  26. dialyzer --output_plt $(DIALYZER_PLT) --build_plt \
  27. --apps $(DIALYZER_APPS)
  28. dialyzer: $(DIALYZER_PLT)
  29. @echo Running dialyzer...
  30. @echo
  31. dialyzer --fullpath --plt $(DIALYZER_PLT) -Wrace_conditions -Wunmatched_returns -Werror_handling -r ./ebin