(config-emh-package): New function.
authormorioka <morioka>
Thu, 17 Sep 1998 16:20:10 +0000 (16:20 +0000)
committermorioka <morioka>
Thu, 17 Sep 1998 16:20:10 +0000 (16:20 +0000)
(compile-emh-package): New function.
(install-emh-package): New function.

EMH-MK

diff --git a/EMH-MK b/EMH-MK
index 0cc3f96..a0b39ae 100644 (file)
--- a/EMH-MK
+++ b/EMH-MK
@@ -1,7 +1,8 @@
 ;;; -*-Emacs-Lisp-*-
-;;;
-;;; $Id: EMH-MK,v 0.1 1997-05-15 06:47:02 morioka Exp $
-;;;
+
+;; EMH-MK: installer for EMH.
+
+;;; Code:
 
 (defun config-emh ()
   (let (prefix lisp-dir)
@@ -30,4 +31,40 @@ LISPDIR=%s\n" PREFIX LISPDIR))
   (install-elisp-modules emh-modules "./" EMH_DIR)
   )
 
+(defun config-emh-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 "EMH-CFG")
+    (load-file "EMH-ELS")
+    (setq emh-modules (append emh-modules
+                              '(auto-autoloads custom-load)))
+    (princ (format "PACKAGEDIR=%s\n" PACKAGEDIR))
+    ))
+
+(defun compile-emh-package ()
+  (config-emh-package)
+
+  (setq autoload-package-name "emh")
+  (add-to-list 'command-line-args-left ".")
+  (batch-update-directory)
+
+  (add-to-list 'command-line-args-left ".")
+  (Custom-make-dependencies)
+
+  (compile-elisp-modules emh-modules ".")
+  )
+
+(defun install-emh-package ()
+  (config-emh-package)
+  (install-elisp-modules emh-modules
+                        "./"
+                        (expand-file-name EMH_PREFIX
+                                          (expand-file-name "lisp"
+                                                            PACKAGEDIR)))
+  )
+
 ;;; EMH-MK ends here