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.

42 lines
416 B

3 years ago
  1. REBAR?=bin/rebar
  2. all: build
  3. clean:
  4. $(REBAR) clean
  5. rm -rf logs
  6. rm -rf .eunit
  7. rm -f test/*.beam
  8. distclean: clean
  9. git clean -fxd
  10. build:
  11. ifeq ($(OS),Windows_NT)
  12. ./configure.ps1
  13. else
  14. ./configure
  15. endif
  16. $(REBAR) compile
  17. eunit:
  18. $(REBAR) eunit skip_deps=true
  19. check: build eunit
  20. release:
  21. rebar3 hex publish
  22. %.beam: %.erl
  23. erlc -o test/ $<
  24. .PHONY: all clean distclean depends build etap eunit check