(config-flim-package): New function.
authormorioka <morioka>
Fri, 11 Sep 1998 09:26:17 +0000 (09:26 +0000)
committermorioka <morioka>
Fri, 11 Sep 1998 09:26:17 +0000 (09:26 +0000)
(compile-flim-package): New function.
(install-flim-package): New function.

FLIM-MK

diff --git a/FLIM-MK b/FLIM-MK
index b76594e..3c15149 100644 (file)
--- a/FLIM-MK
+++ b/FLIM-MK
@@ -1,6 +1,6 @@
 ;;; -*-Emacs-Lisp-*-
 ;;;
-;;; $Id: FLIM-MK,v 1.1 1998-04-13 13:08:14 morioka Exp $
+;;; $Id: FLIM-MK,v 1.2 1998-09-11 09:26:17 morioka Exp $
 ;;;
 
 (defun config-flim ()
@@ -31,4 +31,39 @@ LISPDIR=%s\n" PREFIX LISPDIR))
   (install-elisp-modules flim-modules "./" FLIM_DIR)
   )
 
+(defun config-flim-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 "FLIM-CFG")
+    (load-file "FLIM-ELS")
+    (setq flim-modules (append flim-modules
+                              '(auto-autoloads custom-load)))
+    (princ (format "PACKAGEDIR=%s\n" PACKAGEDIR))
+    ))
+
+(defun compile-flim-package ()
+  (config-flim-package)
+  (compile-elisp-modules flim-modules ".")
+  ;; (setq autoload-package-name "flim")
+  ;; (add-to-list 'command-line-args-left ".")
+  ;; (batch-update-directory)
+  ;; (add-to-list 'command-line-args-left ".")
+  ;; (Custom-make-dependencies)
+  ;; (byte-compile-file "auto-autoloads.el")
+  ;; (byte-compile-file "custom-load.el")
+  )
+
+(defun install-flim-package ()
+  (config-flim-package)
+  (install-elisp-modules flim-modules
+                        "./"
+                        (expand-file-name FLIM_PREFIX
+                                          (expand-file-name "lisp"
+                                                            PACKAGEDIR)))
+  )
+
 ;;; FLIM-MK ends here