diff --git a/Makefile b/Makefile index 91e6b00..55cb555 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,19 @@ +EMACS ?= emacs +# Handle the mess when inside Emacs. +unexport INSIDE_EMACS #cask not like this. +ifeq ($(EMACS), t) +EMACS = emacs +endif + +emacs = $(EMACS) all: package +byte-compile: + cask exec $(emacs) --batch -L lisp -f batch-byte-compile *.el + package: cask package clean: rm -rf dist rm -f -- *.elc -