File: Makefile

package info (click to toggle)
emacs-python-environment 0.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 168 kB
  • sloc: lisp: 297; makefile: 173; python: 37
file content (35 lines) | stat: -rw-r--r-- 680 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
CASK ?= cask
export EMACS ?= emacs
EMACS_TEST = ${CASK} exec ${EMACS} -Q \
--directory . --load test-python-environment.el

ELPA_DIR = \
	.cask/$(shell ${EMACS} -Q --batch --eval '(princ emacs-version)')/elpa
# See: cask-elpa-dir

.PHONY: test deps _check-deps-readability clean purge travis-ci

test: deps
	${EMACS_TEST} --batch -f ert-run-tests-batch-and-exit

itest: deps
	${EMACS_TEST} --eval "(ert t)"

deps: ${ELPA_DIR}
${ELPA_DIR}: Cask
	${CASK} install
	test -d $@
	${MAKE} _check-deps-readability
	touch $@

_check-deps-readability:
	${EMACS_TEST} --batch

clean:
	rm -f *.elc

purge: clean
	rm -rf ${ELPA_DIR}

travis-ci: test
	test ! -d ~/.emacs.d/.python-environments