Skip to content

Instantly share code, notes, and snippets.

@ishideo
Created April 6, 2018 05:27
Show Gist options
  • Save ishideo/839ea572776871253f235fd58ba0f4d0 to your computer and use it in GitHub Desktop.
Save ishideo/839ea572776871253f235fd58ba0f4d0 to your computer and use it in GitHub Desktop.
EMACS ?= emacs
CASK ?= cask
all:
${MAKE} clean
${MAKE} test
${MAKE} compile
${MAKE} test
${MAKE} clean
compile:
# Fail if byte-compile outpus warnings
${CASK} exec ${EMACS} -batch -Q -L . -eval \
"(progn \
(setq byte-compile-error-on-warn t) \
(batch-byte-compile))" myfile.el
test:
${CASK} exec ${EMACS} -Q -batch -L . -l test/myfile-test.el -f ert-run-tests-batch-and-exit
clean:
rm -f myfile.elc
.PHONY: all compile test clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment