From 869e14b7187b8e385eec62c6d850eabd67dfa9cb Mon Sep 17 00:00:00 2001 From: michelou Date: Tue, 14 Jun 2005 17:20:06 +0000 Subject: - makefile for generating .elc files. --- support/emacs/Makefile | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 support/emacs/Makefile (limited to 'support') 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) $@ + +############################################################################## -- cgit v1.2.3