(compile-apel): Use `config-apel'; don't use `add-to-list' for
[elisp/apel.git] / APEL-MK
1 ;;; -*-Emacs-Lisp-*-
2 ;;;
3 ;;; $Id: APEL-MK,v 0.4 1997-11-04 08:52:43 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   (config-apel)
27   (load "EMU-ELS")
28   (load-file "APEL-ELS")
29   (compile-elisp-modules emu-modules    ".")
30   (compile-elisp-modules apel-modules   ".")
31   )
32
33 (defun install-apel ()
34   (compile-apel)
35   ;;(config-apel)
36   (install-elisp-modules emu-modules    "."     EMU_DIR)
37   (install-elisp-modules apel-modules   "."     APEL_DIR)
38   )
39
40 ;;; APEL-MK ends here