Created
April 6, 2018 05:27
-
-
Save ishideo/839ea572776871253f235fd58ba0f4d0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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