compile and install emu and apel.
[elisp/semi.git] / SEMI-MK
1 ;;; -*-Emacs-Lisp-*-
2 ;;;
3 ;;; $Id: SEMI-MK,v 0.2 1997-03-03 18:51:41 morioka Exp $
4 ;;;
5
6 (defun config-semi ()
7   (let (prefix exec-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          (setq exec-prefix (car command-line-args-left))
16          (progn
17            (defvar EXEC_PREFIX exec-prefix)
18            ;;(setq command-line-args-left (cdr command-line-args-left))
19            )))
20   (load-file "SEMI-CFG")
21   (load-file "../emu/EMU-ELS")
22   (load-file "../apel/APEL-ELS")
23   (load-file "../bitmap-mule/BITMAP-ELS")
24   (load-file "../mu/MU-ELS")
25   (load-file "../mel/MEL-ELS")
26   (load-file "SEMI-ELS")
27   (princ (format "PREFIX=%s\tEXEC_PREFIX=%s\n" PREFIX EXEC_PREFIX))
28   )
29
30 (defun directory= (dir1 dir2)
31   (string= (file-name-as-directory dir1)(file-name-as-directory dir2))
32   )
33
34 (defun compile-semi ()
35   (config-semi)
36   (print load-path)
37   (compile-elisp-modules emu-modules            "../emu")
38   (compile-elisp-modules apel-modules           "../apel")
39   (compile-elisp-modules bitmap-modules         "../bitmap-mule")
40   (compile-elisp-modules mu-modules-to-compile  "../mu")
41   (compile-elisp-modules mel-modules            "../mel")
42   (compile-elisp-modules semi-modules-to-compile ".")
43   (compile-elisp-module  'mime-setup            ".")
44   )
45
46 (defun install-semi ()
47   (config-semi)
48   (princ (format "%s\n" emacs-version))
49   (install-elisp-modules emu-modules     "../emu"       EMU_DIR)
50   (install-elisp-modules apel-modules    "../apel"      APEL_DIR)
51   (install-elisp-modules bitmap-modules "../bitmap-mule" BITMAP_DIR)
52   (install-elisp-modules mu-modules      "../mu"        MU_DIR)
53   (install-elisp-modules mel-modules     "../mel"       MEL_DIR)
54   (install-elisp-modules semi-modules    "."            SEMI_KERNEL_DIR)
55   (install-elisp-modules '(mime-setup)   "."    SETUP_FILE_DIR)
56   )
57
58 (defun install-execs ()
59   (config-semi)
60   (install-files METHODS METHOD_SRC_DIR METHOD_DIR nil t)
61   )
62
63 ;;; SEMI-MK ends here