summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..c79e7a9
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+E=@echo
+TEMP=temp.el
+
+EMACS ?= emacs
+
+all: $(TEMP)
+ $(EMACS) -batch -q -no-site-file -l ./$(TEMP) -f rustmode-compile
+ rm -f $(TEMP)
+$(TEMP):
+ $(E) '(setq load-path (cons "." load-path))' >> $(TEMP)
+ $(E) '(defun rustmode-compile () (mapcar (lambda (x) (byte-compile-file x))' >> $(TEMP)
+ $(E) ' (list "cm-mode.el" "rust-mode.el")))' >> $(TEMP)
+clean:
+ rm -f *.elc $(TEMP)