Setting for load-path and requiring install were moved from APEL-CFG.
[elisp/apel.git] / APEL-MK
1 ;;; -*-Emacs-Lisp-*-
2 ;;;
3 ;;; $Id: APEL-MK,v 0.1 1997-03-20 02:04:19 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     (add-to-list 'load-path (expand-file-name "../emu"))
16     (add-to-list 'load-path ".")
17     (require 'install)
18     
19     (load-file "APEL-CFG")
20     (load-file "APEL-ELS")
21     (princ (format "PREFIX=%s\n" PREFIX))
22     ))
23
24 (defun compile-apel ()
25   (config-apel)
26   (compile-elisp-modules apel-modules   ".")
27   )
28
29 (defun install-apel ()
30   (config-apel)
31   (compile-elisp-modules apel-modules   ".")
32   (install-elisp-modules apel-modules   "."     APEL_DIR)
33   )
34
35 ;;; APEL-MK ends here