1 # $Id: Makefile,v 1.9 2002/03/19 09:45:46 garrigue Exp $
3 include ../config/Makefile
6 FILES= caml-font.el caml-hilit.el caml.el camldebug.el \
7 inf-caml.el caml-compat.el caml-help.el
9 # Where to install. If empty, automatically determined.
12 # Name of Emacs executable
15 # Where to install ocamltags script
18 # Command for byte-compiling the files
20 (setq load-path (cons "." load-path)) \
21 (byte-compile-file "caml.el") \
22 (byte-compile-file "inf-caml.el") \
23 (byte-compile-file "caml-help.el") \
24 (byte-compile-file "camldebug.el"))
27 @if test "$(EMACSDIR)" = ""; then \
28 set xxx `($(EMACS) --batch --eval "(mapcar 'print load-path)") \
30 sed -n -e '/\/site-lisp/s/"//gp'`; \
31 if test "$$2" = ""; then \
32 echo "Cannot determine Emacs site-lisp directory"; \
35 $(MAKE) EMACSDIR="$$2" simple-install; \
37 $(MAKE) simple-install; \
41 @echo "Installing in $(EMACSDIR)..."
42 if test -d $(EMACSDIR); then : ; else mkdir -p $(EMACSDIR); fi
43 cp $(FILES) $(EMACSDIR)
44 cd $(EMACSDIR); $(EMACS) --batch --eval '$(COMPILECMD)'
46 ocamltags: ocamltags.in
47 sed -e 's:@EMACS@:$(EMACS):' ocamltags.in >ocamltags
50 install-ocamltags: ocamltags
52 cp ocamltags $(SCRIPTDIR)/ocamltags
55 rm -f ocamltags *~ #*#