Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. EMACS ?= emacs
  2. IPYTHON = env/ipy.$(IPY_VERSION)/bin/ipython
  3. IPY_VERSION = 0.13.0
  4. TESTEIN = tools/testein.py
  5. TESTEIN_OPTS =
  6. PKG_INFO = \
  7. grep '^Version' \
  8. env/ipy.$(IPY_VERSION)/lib/python*/site-packages/*.egg-info/PKG-INFO \
  9. | sed -r 's%.*/site-packages/(.*)-py.*\.egg-info/.*:Version: (.*)$$%\1\t\2%'
  10. testein: test-requirements
  11. ${MAKE} testein-1
  12. interactive-testein: test-requirements
  13. ${MAKE} TESTEIN_OPTS="--no-batch" testein-1
  14. clean: ert-clean
  15. rm -f lisp/*.elc
  16. purge: clean
  17. rm -rf env log
  18. pkg-info:
  19. @echo "**************************************************"
  20. @echo "Installed Python Packages"
  21. $(PKG_INFO)
  22. submodule:
  23. git submodule update --init
  24. ERT_DIR = lib/ert/lisp/emacs-lisp
  25. ert-compile: submodule ert-clean log
  26. $(EMACS) -Q -batch -L $(ERT_DIR) \
  27. -f batch-byte-compile $(ERT_DIR)/*.el 2> log/ert-compile.log
  28. ert-clean:
  29. rm -f lib/ert/lisp/emacs-lisp/*.elc
  30. env-ipy.%:
  31. tools/makeenv.sh env/ipy.$* tools/requirement-ipy.$*.txt
  32. log:
  33. mkdir log
  34. test-requirements: ert-compile env-ipy.$(IPY_VERSION)
  35. ${MAKE} pkg-info
  36. travis-ci-testein: test-requirements
  37. ${MAKE} testein-2
  38. testein-2: testein-2-url-retrieve testein-2-curl
  39. testein-2-curl:
  40. EL_REQUEST_BACKEND=curl ${MAKE} testein-1
  41. testein-2-url-retrieve:
  42. EL_REQUEST_BACKEND=url-retrieve ${MAKE} testein-1
  43. testein-1:
  44. $(EMACS) --version
  45. python --version
  46. env/ipy.$(IPY_VERSION)/bin/ipython --version
  47. $(TESTEIN) --clean-elc -e $(EMACS) \
  48. --ipython $(IPYTHON) ${TESTEIN_OPTS}
  49. travis-ci-zeroein:
  50. $(EMACS) --version
  51. EMACS=$(EMACS) lisp/zeroein.el -batch
  52. rm -rf lib/*
  53. EMACS=$(EMACS) lisp/zeroein.el -batch