You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.1 KiB

преди 16 години
преди 11 години
преди 11 години
преди 11 години
преди 11 години
преди 16 години
преди 16 години
преди 16 години
преди 14 години
преди 9 години
преди 14 години
преди 11 години
  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
  4. all: compile
  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. eunit_test: all
  13. ./rebar eunit
  14. test: all
  15. cd test; erl -pa ../../ibrowse/ebin -make; cd ../; \
  16. erl -noshell -pa test -pa ebin -s ibrowse_test unit_tests \
  17. -s ibrowse_test verify_chunked_streaming \
  18. -s ibrowse_test test_chunked_streaming_once \
  19. -s erlang halt
  20. xref: all
  21. ./rebar xref
  22. docs:
  23. erl -noshell \
  24. -eval 'edoc:application(ibrowse, ".", []), init:stop().'
  25. $(DIALYZER_PLT):
  26. @echo Creating dialyzer plt file: $(DIALYZER_PLT)
  27. @echo This may take a minute or two...
  28. @echo
  29. dialyzer --output_plt $(DIALYZER_PLT) --build_plt \
  30. --apps $(DIALYZER_APPS)
  31. dialyzer: $(DIALYZER_PLT)
  32. @echo Running dialyzer...
  33. @echo
  34. dialyzer --fullpath --plt $(DIALYZER_PLT) -Wrace_conditions -Wunmatched_returns -Werror_handling -r ./ebin