PageRenderTime 31ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/Makefile

http://github.com/skarab/ewgi
Makefile | 32 lines | 23 code | 9 blank | 0 comment | 0 complexity | e5878a39d09205109713290001224ebb MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception
  1. VSN := 0.2
  2. ERL ?= erl
  3. EBIN_DIRS := $(wildcard lib/*/ebin)
  4. APP := ewgi
  5. all: erl ebin/$(APP).app
  6. erl: ebin lib
  7. @./support/compile.erl ebin src/$(APP).app $(EBIN_DIRS)
  8. docs:
  9. @erl -noshell -run edoc_run application '$(APP)' '"."' '[]'
  10. clean:
  11. @echo "removing:"
  12. @rm -fv ebin/*.beam ebin/*.app
  13. ebin/$(APP).app: src/$(APP).app Makefile
  14. @./support/gen_app_file.erl src/$(APP).app $@ $(VSN)
  15. ebin:
  16. @mkdir ebin
  17. lib:
  18. @mkdir lib
  19. dialyzer: erl
  20. @dialyzer -c ebin
  21. test: erl
  22. @$(ERL) -pa $(EBIN_DIRS) -pa ebin -noinput +B \
  23. -eval 'case lists:member(error, ewgi_test:test()) of true -> halt(1); _ -> halt(0) end.'