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.

48 lines
1006 B

11 years ago
9 years ago
11 years ago
9 years ago
9 years ago
9 years ago
  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. REBAR ?= $(shell which rebar3)
  5. all: compile
  6. compile:
  7. $(REBAR) compile
  8. clean:
  9. $(REBAR) clean
  10. test: unit_tests old_tests eunit
  11. @echo "====================================================="
  12. unit_tests:
  13. @echo "====================================================="
  14. @echo "Running tests..."
  15. @cd test && make test && cd ..
  16. old_tests:
  17. @echo "====================================================="
  18. @echo "Running old tests..."
  19. @cd test && make old_tests && cd ..
  20. eunit:
  21. @echo "====================================================="
  22. @echo "Running eunit tests..."
  23. $(REBAR) eunit
  24. xref: all
  25. $(REBAR) xref
  26. docs:
  27. $(REBAR) edoc
  28. dialyzer:
  29. $(REBAR) dialyzer
  30. install: compile
  31. mkdir -p $(DESTDIR)/lib/ibrowse-$(IBROWSE_VSN)/
  32. cp -r _build/lib/default/ibrowse/ebin $(DESTDIR)/lib/ibrowse-$(IBROWSE_VSN)/
  33. .PHONY: test docs