install emu.
[elisp/apel.git] / APEL-MK
1 ;;; -*-Emacs-Lisp-*-
2 ;;;
3 ;;; $Id: APEL-MK,v 0.3 1997-05-31 16:39:06 morioka Exp $
4 ;;;
5
6 (defun config-apel ()
7   (let (prefix)
8     (setq prefix (car command-line-args-left))
9     (and prefix
10          (not (string-equal "NONE" prefix))
11          (progn
12            (defvar PREFIX prefix)
13            (setq command-line-args-left (cdr command-line-args-left))
14            ))
15     (load-file "APEL-CFG")
16     (or (boundp 'apel-modules)
17         (load-file "APEL-ELS")
18         )
19     (princ (format "PREFIX=%s\n" PREFIX))
20     ))
21
22 (defun compile-apel ()
23   (add-to-list 'load-path (expand-file-name "../emu"))
24   (add-to-list 'load-path ".")
25   (require 'install)
26   (load "EMU-ELS")
27   (load-file "APEL-ELS")
28   (compile-elisp-modules emu-modules    ".")
29   (compile-elisp-modules apel-modules   ".")
30   )
31
32 (defun install-apel ()
33   (compile-apel)
34   (config-apel)
35   (install-elisp-modules emu-modules    "."     EMU_DIR)
36   (install-elisp-modules apel-modules   "."     APEL_DIR)
37   )
38
39 ;;; APEL-MK ends here