branch: elpa/lua-mode
commit c69e15030f86a7a67bf3633ae9c6541ba24db737
Author: immerrr <[email protected]>
Commit: immerrr <[email protected]>

    Makefile: add compile target
---
 Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Makefile b/Makefile
index a5f9de7..c40db93 100644
--- a/Makefile
+++ b/Makefile
@@ -3,9 +3,15 @@
 VERSION="$(shell sed -nre '/^;; Version:/ { s/^;; Version:[ \t]+//; p }' 
lua-mode.el)"
 DISTFILE = lua-mode-$(VERSION).zip
 
+# EMACS value may be overridden
+EMACS?=emacs
+
 default:
        @echo version is $(VERSION)
 
+compile:
+       $(EMACS) --batch --no-site-file -f batch-byte-compile lua-mode.el
+
 dist:
        rm -f $(DISTFILE) && \
        git archive --format=zip -o $(DISTFILE) --prefix=lua-mode/ HEAD

Reply via email to