Makefile 892 B

1234567891011121314151617181920212223242526272829303132333435363738
  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
  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. clean:
  14. rm -rf ebin/*.beam erl_crash.dump
  15. test: beam_files ebin/oauth_unit.beam
  16. @$(ERL) -noshell -s oauth_unit test -s init stop
  17. termie_hmac: beam_files ebin/oauth_termie.beam
  18. @$(ERL) -noshell -s inets -s oauth_termie test_hmac -s init stop
  19. termie_rsa: beam_files ebin/oauth_termie.beam
  20. @$(ERL) -noshell -s inets -s oauth_termie test_rsa -s init stop
  21. shell: beam_files
  22. @$(ERL) -s inets
  23. dialyzer:
  24. dialyzer --no_check_plt --src -c src/