(config-semi-package): New function.
authormorioka <morioka>
Fri, 11 Sep 1998 23:47:04 +0000 (23:47 +0000)
committermorioka <morioka>
Fri, 11 Sep 1998 23:47:04 +0000 (23:47 +0000)
(compile-semi-package): New function.
(install-semi-package): New function.

SEMI-MK

diff --git a/SEMI-MK b/SEMI-MK
index 5abe824..11c8137 100644 (file)
--- a/SEMI-MK
+++ b/SEMI-MK
@@ -1,7 +1,7 @@
 ;;; -*-Emacs-Lisp-*-
-;;;
-;;; $Id: SEMI-MK,v 1.2 1998-03-13 12:55:52 morioka Exp $
-;;;
+
+;; SEMI-MK: installer for SEMI.
+
 ;;; Code:
 
 (defun config-semi ()
@@ -51,4 +51,42 @@ LISPDIR=%s\n" PREFIX EXEC_PREFIX LISPDIR))
   (install-files METHODS METHOD_SRC_DIR METHOD_DIR nil t)
   )
 
+(defun config-semi-package ()
+  (let (package-dir)
+    (and (setq package-dir (car command-line-args-left))
+        (or (string= "NONE" package-dir)
+            (defvar PACKAGEDIR package-dir)
+            ))
+    (setq command-line-args-left (cdr command-line-args-left))
+    (load-file "SEMI-CFG")
+    (load-file "SEMI-ELS")
+                                         
+    (princ (format "PACKAGEDIR=%s\n" PACKAGEDIR))
+    ))
+
+(defun compile-semi-package ()
+  (config-semi-package)
+
+  (setq autoload-package-name "semi")
+  (add-to-list 'command-line-args-left ".")
+  (batch-update-directory)
+
+  (add-to-list 'command-line-args-left ".")
+  (Custom-make-dependencies)
+
+  (compile-elisp-modules (append semi-modules-to-compile
+                                '(auto-autoloads custom-load))
+                        ".")
+  )
+
+(defun install-semi-package ()
+  (config-semi-package)
+  (install-elisp-modules (append semi-modules
+                                '(mime auto-autoloads custom-load))
+                        "./"
+                        (expand-file-name SEMI_PREFIX
+                                          (expand-file-name "lisp"
+                                                            PACKAGEDIR)))
+  )
+
 ;;; SEMI-MK ends here