Makefile 614 B

12345678910111213141516171819202122232425262728293031
  1. EFLAGS=-pa ebin -pa ../erlang-fmt/ebin -pa ../eunit/ebin -I../ -Iinclude
  2. ERL := erl $(EFLAGS)
  3. ERL_SOURCES := $(wildcard src/*.erl)
  4. ERL_OBJECTS := $(ERL_SOURCES:src/%.erl=ebin/%.beam)
  5. all: objects
  6. objects: $(ERL_OBJECTS)
  7. ebin/%.beam: src/%.erl
  8. @test -d ebin || mkdir ebin
  9. erlc $(EFLAGS) -W +debug_info -o ebin $<
  10. clean:
  11. rm -rf ebin/*.beam erl_crash.dump
  12. test: objects
  13. $(ERL) -noshell -s crypto -s oauth_unit test -s init stop
  14. termie: objects
  15. $(ERL) -noshell -s crypto -s inets -s oauth_termie test -s init stop
  16. shell: objects
  17. @$(ERL) -s crypto -s inets
  18. dialyzer:
  19. dialyzer $(EFLAGS) --src -c src/