2018-09-26 10:07:50 -04:00
|
|
|
EMACS ?= $(shell which emacs)
|
2013-02-10 05:28:36 +01:00
|
|
|
IPYTHON = env/ipy.$(IPY_VERSION)/bin/ipython
|
2018-09-26 10:07:50 -04:00
|
|
|
IPY_VERSION = 5.8.0
|
|
|
|
SRC=$(shell cask files)
|
|
|
|
ELCFILES = $(SRC:.el=.elc)
|
2012-09-12 19:05:20 +02:00
|
|
|
|
2018-10-15 16:57:22 -04:00
|
|
|
.PHONY: autoloads
|
|
|
|
autoloads:
|
2018-10-20 11:40:36 -04:00
|
|
|
-rm -f lisp/ein-loaddefs.el
|
|
|
|
$(EMACS) -Q --batch \
|
|
|
|
--eval "(let ((generated-autoload-file (expand-file-name \"lisp/ein-loaddefs.el\"))) (update-directory-autoloads (expand-file-name \"lisp\")))"
|
2018-10-01 18:40:31 -04:00
|
|
|
|
2018-09-26 10:07:50 -04:00
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
cask clean-elc
|
2012-09-12 17:54:19 +02:00
|
|
|
|
2013-02-10 05:33:25 +01:00
|
|
|
env-ipy.%:
|
|
|
|
tools/makeenv.sh env/ipy.$* tools/requirement-ipy.$*.txt
|
2012-09-17 21:12:47 +02:00
|
|
|
|
2018-10-11 16:53:02 -04:00
|
|
|
.PHONY: test-compile
|
2018-10-15 16:57:22 -04:00
|
|
|
test-compile: clean autoloads
|
2018-10-11 16:53:02 -04:00
|
|
|
! ( cask build 2>&1 | awk '{if (/^ /) { gsub(/^ +/, " ", $$0); printf "%s", $$0 } else { printf "\n%s", $$0 }}' | egrep "not known|Error|free variable" )
|
2018-10-18 19:01:43 -04:00
|
|
|
cask clean-elc
|
2018-10-11 16:53:02 -04:00
|
|
|
|
2018-10-15 16:57:22 -04:00
|
|
|
.PHONY: quick
|
|
|
|
quick: test-compile test-unit
|
|
|
|
|
2018-10-13 07:17:44 -05:00
|
|
|
.PHONY: test-no-build
|
2018-10-15 16:57:22 -04:00
|
|
|
test-no-build: test-unit test-int autoloads
|
|
|
|
|
|
|
|
.PHONY: quick
|
|
|
|
quick: test-compile test-unit
|
2018-10-13 07:17:44 -05:00
|
|
|
|
2018-09-26 10:07:50 -04:00
|
|
|
.PHONY: test
|
2018-10-15 16:57:22 -04:00
|
|
|
test: quick test-int
|
2013-01-16 21:00:43 +01:00
|
|
|
|
2018-09-26 10:07:50 -04:00
|
|
|
.PHONY: test-int
|
|
|
|
test-int:
|
|
|
|
cask exec ert-runner -L ./lisp -L ./test -l test/testfunc.el test/test-func.el
|
2018-09-26 10:25:48 -04:00
|
|
|
cask exec ecukes
|
2013-01-16 21:00:43 +01:00
|
|
|
|
2018-09-26 10:07:50 -04:00
|
|
|
.PHONY: test-unit
|
|
|
|
test-unit:
|
|
|
|
cask exec ert-runner -L ./lisp -L ./test -l test/testein.el test/test-ein*.el
|
2012-09-28 01:02:25 +02:00
|
|
|
|
|
|
|
travis-ci-zeroein:
|
|
|
|
$(EMACS) --version
|
|
|
|
EMACS=$(EMACS) lisp/zeroein.el -batch
|
2012-09-28 01:29:17 +02:00
|
|
|
rm -rf lib/*
|
|
|
|
EMACS=$(EMACS) lisp/zeroein.el -batch
|