(base64-encode-string): Allow the optional second arg `no-line-break'.
[elisp/flim.git] / FLIM-MK
diff --git a/FLIM-MK b/FLIM-MK
index 3c15149..8270080 100644 (file)
--- a/FLIM-MK
+++ b/FLIM-MK
@@ -1,10 +1,11 @@
 ;;; -*-Emacs-Lisp-*-
-;;;
-;;; $Id: FLIM-MK,v 1.2 1998-09-11 09:26:17 morioka Exp $
-;;;
+
+;; FLIM-MK: installer for FLIM.
+
+;;; Code:
 
 (defun config-flim ()
-  (let (prefix lisp-dir)
+  (let (prefix lisp-dir version-specific-lisp-dir)
     (and (setq prefix (car command-line-args-left))
         (or (string-equal "NONE" prefix)
             (defvar PREFIX prefix)
             (defvar LISPDIR lisp-dir)
             ))
     (setq command-line-args-left (cdr command-line-args-left))
+    (and (setq version-specific-lisp-dir (car command-line-args-left))
+        (or (string-equal "NONE" version-specific-lisp-dir)
+            (progn
+              (defvar VERSION_SPECIFIC_LISPDIR version-specific-lisp-dir)
+              (princ (format "VERSION_SPECIFIC_LISPDIR=%s\n"
+                             VERSION_SPECIFIC_LISPDIR)))
+            ))
+    (setq command-line-args-left (cdr command-line-args-left))
     (load-file "FLIM-CFG")
     (load-file "FLIM-ELS")
     (princ (format "PREFIX=%s
@@ -47,14 +56,15 @@ LISPDIR=%s\n" PREFIX LISPDIR))
 
 (defun compile-flim-package ()
   (config-flim-package)
+
+  (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)
+
   (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 ()
@@ -64,6 +74,8 @@ LISPDIR=%s\n" PREFIX LISPDIR))
                         (expand-file-name FLIM_PREFIX
                                           (expand-file-name "lisp"
                                                             PACKAGEDIR)))
+  (delete-file "./auto-autoloads.el")
+  (delete-file "./custom-load.el")
   )
 
 ;;; FLIM-MK ends here