`LISPDIR', `VERSION_SPECIFIC_LISPDIR' and `what-where'.
* Makefile (what-where): New target.
(install): Add new arg `VERSION_SPECIFIC_LISPDIR'.
* APEL-MK (what-where-apel): New function.
(config-apel): Refer to `VERSION_SPECIFIC_LISPDIR'.
* APEL-CFG (VERSION_SPECIFIC_LISPDIR): New variable.
;;; @ optional settings
;;;
-(setq EMU_DIR
- (expand-file-name
- EMU_PREFIX
- (install-detect-elisp-directory PREFIX nil 'version-specific)))
+(defvar VERSION_SPECIFIC_LISPDIR
+ (install-detect-elisp-directory PREFIX nil 'version-specific))
+
+(setq EMU_DIR (expand-file-name EMU_PREFIX VERSION_SPECIFIC_LISPDIR))
;; It is generated by automatically. Please set variable `PREFIX'.
;; If you don't like default directory tree, please set it.
;;; Code:
(defun config-apel ()
- (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 "APEL-CFG")
(or (boundp 'apel-modules)
(load-file "APEL-ELS")
(byte-compile-file (expand-file-name "custom-load.el" dir))
))
+(defun what-where-apel ()
+ (config-apel)
+ (load "EMU-ELS")
+ (princ (format "
+The files that belong to the EMU modules:
+ %s
+ -> %s
+
+The files that belong to the APEL modules:
+ %s
+ -> %s
+"
+ (mapconcat 'symbol-name emu-modules ", ")
+ EMU_DIR
+ (mapconcat 'symbol-name apel-modules ", ")
+ APEL_DIR)))
+
;;; APEL-MK ends here
+1998-10-12 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * README.en: Add explanations about
+ `LISPDIR', `VERSION_SPECIFIC_LISPDIR' and `what-where'.
+
+ * Makefile (what-where): New target.
+ (install): Add new arg `VERSION_SPECIFIC_LISPDIR'.
+
+ * APEL-MK (what-where-apel): New function.
+ (config-apel): Refer to `VERSION_SPECIFIC_LISPDIR'.
+
+ * APEL-CFG (VERSION_SPECIFIC_LISPDIR): New variable.
+
1998-10-12 MORIOKA Tomohiko <morioka@jaist.ac.jp>
* README.en (load-path): Modify for Emacs 20.3.
PREFIX = NONE
LISPDIR = NONE
PACKAGEDIR = NONE
+VERSION_SPECIFIC_LISPDIR = NONE
elc:
$(EMACS) $(FLAGS) -f compile-apel
install:
- $(EMACS) $(FLAGS) -f install-apel $(PREFIX) $(LISPDIR)
+ $(EMACS) $(FLAGS) -f install-apel $(PREFIX) $(LISPDIR) \
+ $(VERSION_SPECIFIC_LISPDIR)
install-package:
$(XEMACS) $(FLAGS) -f install-apel-package $(PACKAGEDIR)
+what-where:
+ $(EMACS) $(FLAGS) -f what-where-apel $(PREFIX) $(LISPDIR) \
+ $(VERSION_SPECIFIC_LISPDIR)
+
+
clean:
-rm *.elc
/usr/local/share/emacs/20.2/site-lisp/ --- emu
/usr/local/share/emacs/site-lisp/apel/ --- APEL
+ You can specify the lisp directory for Emacs Lisp programs,
+ for example:
+
+ % make install LISPDIR=~/elisp
+
+ You can also specify the version specific lisp directory where the
+ emu modules will be installed in, for example:
+
+ % make install VERSION_SPECIFIC_LISPDIR=~/elisp
+
+ If you would like to know what files belong to the emu modules or
+ the apel modules, or where they will be installed in, for example,
+ please type the following command.
+
+ % make what-where LISPDIR=~/elisp VERSION_SPECIFIC_LISPDIR=~/elisp
+
You can specify other optional settings by editing the file
APEL-CFG. Please read comments in it.