(config-semi): fixed.
[elisp/semi.git] / SEMI-MK
1 ;;; -*-Emacs-Lisp-*-
2 ;;;
3 ;;; $Id: SEMI-MK,v 0.4 1997-05-13 14:32:39 morioka Exp $
4 ;;;
5
6 (defun config-semi ()
7   (let (prefix exec-prefix lisp-dir)
8     (and (setq prefix (car command-line-args-left))
9          (or (string-equal "NONE" prefix)
10              (defvar PREFIX prefix)
11              ))
12     (setq command-line-args-left (cdr command-line-args-left))
13     (and (setq exec-prefix (car command-line-args-left))
14          (or (string-equal "NONE" exec-prefix)
15              (defvar EXEC_PREFIX exec-prefix)
16              ))
17     (setq command-line-args-left (cdr command-line-args-left))
18     (and (setq lisp-dir (car command-line-args-left))
19          (or (string-equal "NONE" lisp-dir)
20              (defvar LISPDIR lisp-dir)
21              )))
22   (load-file "SEMI-CFG")
23   (load-file "SEMI-ELS")
24   (princ (format "PREFIX=%s\tEXEC_PREFIX=%s
25 LISPDIR=%s\n" PREFIX EXEC_PREFIX LISPDIR))
26   )
27
28 (defun directory= (dir1 dir2)
29   (string= (file-name-as-directory dir1)(file-name-as-directory dir2))
30   )
31
32 (defun compile-semi ()
33   (config-semi)
34   (print load-path)
35   (compile-elisp-modules semi-modules-to-compile ".")
36   (compile-elisp-module  'mime-setup            ".")
37   )
38
39 (defun install-semi ()
40   (config-semi)
41   (princ (format "%s\n" emacs-version))
42   (install-elisp-modules semi-modules    "."    SEMI_KERNEL_DIR)
43   (install-elisp-modules '(mime-setup)   "."    SETUP_FILE_DIR)
44   )
45
46 (defun install-execs ()
47   (config-semi)
48   (install-files METHODS METHOD_SRC_DIR METHOD_DIR nil t)
49   )
50
51 ;;; SEMI-MK ends here