summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2005-06-14 17:20:06 +0000
committermichelou <michelou@epfl.ch>2005-06-14 17:20:06 +0000
commit869e14b7187b8e385eec62c6d850eabd67dfa9cb (patch)
treeb038624ac146c74a0405d57b443b0d33d1e272be /support
parentc27b04348a46df90feedbdee8842da91729ebb5a (diff)
downloadscala-869e14b7187b8e385eec62c6d850eabd67dfa9cb.tar.gz
scala-869e14b7187b8e385eec62c6d850eabd67dfa9cb.tar.bz2
scala-869e14b7187b8e385eec62c6d850eabd67dfa9cb.zip
- makefile for generating .elc files.
Diffstat (limited to 'support')
-rw-r--r--support/emacs/Makefile50
1 files changed, 50 insertions, 0 deletions
diff --git a/support/emacs/Makefile b/support/emacs/Makefile
new file mode 100644
index 0000000000..ab1b3a2af3
--- /dev/null
+++ b/support/emacs/Makefile
@@ -0,0 +1,50 @@
+############################################################-*-Makefile-*-####
+# Makefile for compiling the major mode of Emacs
+##############################################################################
+# $Id$
+
+##############################################################################
+# Configuration
+
+ROOT = .
+
+SOURCE_DIR = $(ROOT)
+
+##############################################################################
+# Variables
+
+# Emacs Lisp
+ELISP_COMMAND ?= emacs
+ELISP_OPTIONS += -batch -no-site-file
+ELISP_OPTIONS += -eval '(setq byte-compile-emacs19-compatibility t)'
+ELISP_OPTIONS += -f batch-byte-compile
+
+ELISP_FILES += inferior-scala-mode
+ELISP_FILES += scala-mode-auto
+ELISP_FILES += scala-mode
+ELISP_SOURCES += $(ELISP_FILES:%=$(SOURCE_DIR)/%.el)
+
+##############################################################################
+
+RM ?= rm -f
+TOUCH ?= touch
+
+##############################################################################
+# Commands
+
+all: .latest-build
+
+clean:
+ $(RM) *.elc .latest-*
+
+.PHONY: all
+.PHONY: clean
+
+##############################################################################
+# Rules
+
+.latest-build: $(ELISP_SOURCES)
+ $(ELISP_COMMAND) $(ELISP_OPTIONS) $(ELISP_SOURCES)
+ @$(TOUCH) $@
+
+##############################################################################