EmacsLispのMakefileを追加
authorj8takagi <j8takagi@nifty.com>
Fri, 15 Mar 2013 02:22:22 +0000 (11:22 +0900)
committerj8takagi <j8takagi@nifty.com>
Fri, 15 Mar 2013 02:22:22 +0000 (11:22 +0900)
emacslisp_mk/Makefile [new file with mode: 0644]

diff --git a/emacslisp_mk/Makefile b/emacslisp_mk/Makefile
new file mode 100644 (file)
index 0000000..ad5b887
--- /dev/null
@@ -0,0 +1,18 @@
+EMACS := emacs
+
+COMPILE.el := $(EMACS) -batch -f batch-byte-compile
+
+ELFILES := $(wildcard *.el)
+ELCFILES := $(addsuffix c,$(ELFILES))
+
+.PHONY: all install clean
+
+all: $(ELCFILES)
+
+install: all
+
+%.elc: %.el
+       $(COMPILE.el) $<
+
+clean:
+       $(RM) $(ELCFILES)