diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2012-01-16 12:44:24 +0100 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2012-01-16 12:44:24 +0100 |
| commit | f0e4edc220bda13693292b2c3d322eae572d65aa (patch) | |
| tree | a5f88dee6759db4f57cfb574a2e0d24c7d59e846 /Makefile | |
| download | rust-mode-f0e4edc220bda13693292b2c3d322eae572d65aa.tar.gz | |
Move emacs mode into tree
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 14 |
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) |
