--- /dev/null
+;;; -*-Emacs-Lisp-*-
+
+;; FLIM-CFG: installation setting about FLIM.
+
+;;; Code:
+
+(defvar default-load-path load-path)
+
+(add-to-list 'load-path
+ (expand-file-name "../../site-lisp/apel" data-directory))
+
+(if (boundp 'LISPDIR)
+ (progn
+ (add-to-list 'default-load-path LISPDIR)
+ (add-to-list 'load-path LISPDIR)
+ (add-to-list 'load-path (expand-file-name "apel" LISPDIR))
+ ))
+
+(require 'install)
+
+(add-path default-directory)
+
+(or (fboundp 'write-region-as-binary)
+ (error "Please install latest APEL 7.3 or later."))
+(or (fboundp 'insert-file-contents-as-binary)
+ (error "Please install latest APEL 7.3 or later."))
+
+
+;;; @ Please specify prefix of install directory.
+;;;
+
+;; Please specify install path prefix.
+;; If it is omitted, shared directory (maybe /usr/local is used).
+(defvar PREFIX install-prefix)
+;;(setq PREFIX "~/")
+
+;; Please specify prefix for ``FLIM'' [optional]
+(setq FLIM_PREFIX "flim")
+
+\f
+
+;;; @ optional settings
+;;;
+
+;; It is generated by automatically. Please set variable `PREFIX'.
+;; If you don't like default directory tree, please set it.
+(defvar LISPDIR (install-detect-elisp-directory PREFIX))
+;; (setq install-default-elisp-directory "~/lib/emacs/lisp")
+
+(setq FLIM_DIR (expand-file-name FLIM_PREFIX LISPDIR))
+
+;;; FLIM-CFG ends here
--- /dev/null
+;;; -*-Emacs-Lisp-*-
+;;;
+;;; $Id: FLIM-ELS,v 1.1 1998-04-13 13:08:14 morioka Exp $
+;;;
+
+(setq flim-modules '(std11 std11-parse
+ mel mel-dl mel-b mel-q mel-u mel-g
+ mime-def eword-decode eword-encode
+ ))
+
+(if (fboundp 'dynamic-link)
+ (setq flim-modules (cons 'mel-dl flim-modules))
+ )
+
+;;; FLIM-ELS ends here
--- /dev/null
+;;; -*-Emacs-Lisp-*-
+;;;
+;;; $Id: FLIM-MK,v 1.1 1998-04-13 13:08:14 morioka Exp $
+;;;
+
+(defun config-flim ()
+ (let (prefix lisp-dir)
+ (and (setq prefix (car command-line-args-left))
+ (or (string-equal "NONE" prefix)
+ (defvar PREFIX prefix)
+ ))
+ (setq command-line-args-left (cdr command-line-args-left))
+ (and (setq lisp-dir (car command-line-args-left))
+ (or (string-equal "NONE" lisp-dir)
+ (defvar LISPDIR lisp-dir)
+ ))
+ (setq command-line-args-left (cdr command-line-args-left))
+ (load-file "FLIM-CFG")
+ (load-file "FLIM-ELS")
+ (princ (format "PREFIX=%s
+LISPDIR=%s\n" PREFIX LISPDIR))
+ ))
+
+(defun compile-flim ()
+ (config-flim)
+ (compile-elisp-modules flim-modules ".")
+ )
+
+(defun install-flim ()
+ (config-flim)
+ (install-elisp-modules flim-modules "./" FLIM_DIR)
+ )
+
+;;; FLIM-MK ends here