;;; -*-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)
(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