Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. SOURCE_FILES := $(wildcard src/*.erl)
  2. ERLC := erlc -W +debug_info -o ebin
  3. ERL := erl -pa ebin -pa ../erlang-fmt/ebin -s crypto -s inets -s ssl
  4. all: beam_files
  5. beam_files: $(SOURCE_FILES:src/%.erl=ebin/%.beam)
  6. ebin/%.beam: src/%.erl
  7. @test -d ebin || mkdir ebin
  8. $(ERLC) $<
  9. ebin/oauth_unit.beam: test/oauth_unit.erl
  10. $(ERLC) -pa ../eunit/ebin -I../ -Iinclude test/oauth_unit.erl
  11. ebin/oauth_termie.beam: test/oauth_termie.erl
  12. $(ERLC) test/oauth_termie.erl
  13. ebin/oauth_google.beam: test/oauth_google.erl
  14. $(ERLC) test/oauth_google.erl
  15. clean:
  16. rm -rf ebin/*.beam erl_crash.dump
  17. test: beam_files ebin/oauth_unit.beam
  18. @$(ERL) -noshell -s oauth_unit test -s init stop
  19. termie_hmac: beam_files ebin/oauth_termie.beam
  20. @$(ERL) -noshell -s oauth_termie test_hmac -s init stop
  21. termie_rsa: beam_files ebin/oauth_termie.beam
  22. @$(ERL) -noshell -s oauth_termie test_rsa -s init stop
  23. google: beam_files ebin/oauth_google.beam
  24. @$(ERL) -noshell -s oauth_google test -s init stop
  25. shell: beam_files
  26. @$(ERL)
  27. dialyzer:
  28. dialyzer --no_check_plt --src -c src/