Makefile 520 B

12345678910111213141516171819202122232425262728
  1. ERL=erl
  2. ERLC=erlc
  3. PARSER=src/erlydtl/erlydtl_parser
  4. all: $(PARSER).erl
  5. -mkdir -p ebintest
  6. $(ERL) -make
  7. $(PARSER).erl: $(PARSER).yrl
  8. $(ERLC) -o src/erlydtl src/erlydtl/erlydtl_parser.yrl
  9. run:
  10. $(ERL) -pa ebin
  11. test:
  12. $(ERL) -noshell -pa ebin -pa ebintest \
  13. -s erlydtl_functional_tests run_tests \
  14. -s erlydtl_dateformat_tests run_tests \
  15. -s erlydtl_unittests run_tests \
  16. -s init stop
  17. clean:
  18. rm -fv ebin/*.beam
  19. rm -fv ebintest/*
  20. rm -fv erl_crash.dump $(PARSER).erl
  21. rm -fv examples/rendered_output/*