]> code.delx.au - gnu-emacs-elpa/commitdiff
Add Makefile for byte compiling
authorFrancois-Xavier Kowalski <fix.kowalski@gmail.com>
Mon, 11 Jun 2012 08:07:01 +0000 (12:07 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 11 Jun 2012 08:07:01 +0000 (12:07 +0400)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..77e9bba
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+# -*- Makefile -*-
+
+# Compile with noninteractive and relatively clean environment.
+BATCHFLAGS = -batch -q --no-site-file
+
+SRCS = js2-mode.el js2-imenu-extras.el
+
+OBJS = $(SRCS:.el=.elc)
+
+%.elc: %.el
+       emacs $(BATCHFLAGS) -f batch-byte-compile $^
+
+all: $(OBJS)
+
+clean:
+       -rm -f $(OBJS)
+
+# custom build (require loads)
+js2-imenu-extras.elc: js2-mode.elc
+       emacs $(BATCHFLAGS) -l ./js2-mode.elc -f batch-byte-compile $*.el