From 066882de06fda26f4898a8c6f063f6062ab5bb5f Mon Sep 17 00:00:00 2001 From: yamaoka Date: Mon, 12 Oct 1998 10:10:32 +0000 Subject: [PATCH] * README.en: Add explanation about `VERSION_SPECIFIC_LISPDIR'. * Makefile (install): Add new arg `VERSION_SPECIFIC_LISPDIR'. (install-elc): Likewise. * SEMI-MK (config-semi): Refer to `VERSION_SPECIFIC_LISPDIR'. * SEMI-CFG (VERSION_SPECIFIC_LISPDIR): New variable. --- ChangeLog | 11 +++++++++++ Makefile | 7 +++++-- README.en | 6 ++++++ SEMI-CFG | 5 +++++ SEMI-MK | 10 +++++++++- 5 files changed, 36 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index b58cda3..6bfd8d6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +1998-10-12 Katsumi Yamaoka + + * README.en: Add explanation about `VERSION_SPECIFIC_LISPDIR'. + + * Makefile (install): Add new arg `VERSION_SPECIFIC_LISPDIR'. + (install-elc): Likewise. + + * SEMI-MK (config-semi): Refer to `VERSION_SPECIFIC_LISPDIR'. + + * SEMI-CFG (VERSION_SPECIFIC_LISPDIR): New variable. + 1998-10-09 MORIOKA Tomohiko * SEMI-CFG: Abolish variable `SHELL' and `SHELLOPTION'. diff --git a/Makefile b/Makefile index f2dd1de..18e115d 100644 --- a/Makefile +++ b/Makefile @@ -17,17 +17,20 @@ PREFIX = NONE EXEC_PREFIX = NONE LISPDIR = NONE PACKAGEDIR = NONE +VERSION_SPECIFIC_LISPDIR = NONE GOMI = *.elc elc: $(EMACS) $(FLAGS) -f compile-semi \ - $(PREFIX) $(EXEC_PREFIX) $(LISPDIR) + $(PREFIX) $(EXEC_PREFIX) $(LISPDIR) \ + $(VERSION_SPECIFIC_LISPDIR) install-elc: elc $(EMACS) $(FLAGS) -f install-semi \ - $(PREFIX) $(EXEC_PREFIX) $(LISPDIR) + $(PREFIX) $(EXEC_PREFIX) $(LISPDIR) \ + $(VERSION_SPECIFIC_LISPDIR) install: install-elc diff --git a/README.en b/README.en index 3b3ca0b..a1943c1 100644 --- a/README.en +++ b/README.en @@ -109,6 +109,12 @@ Installation emacs command is used (perhaps /usr/local/share/emacs/site-lisp or /usr/local/lib/xemacs/site-lisp). + If the emu modules (included in APEL package) have been installed in + the non-standard directory, you should specify where they will be + found, for example: + + % make install VERSION_SPECIFIC_LISPDIR=~/elisp + (c) install as a XEmacs package If you want to install to XEmacs package directory, please do diff --git a/SEMI-CFG b/SEMI-CFG index 449cb87..c05df10 100644 --- a/SEMI-CFG +++ b/SEMI-CFG @@ -18,6 +18,11 @@ (add-to-list 'load-path (expand-file-name "apel" LISPDIR)) )) +(defvar VERSION_SPECIFIC_LISPDIR nil) + +(if VERSION_SPECIFIC_LISPDIR + (add-to-list 'load-path VERSION_SPECIFIC_LISPDIR)) + (condition-case nil (require 'install) (error (error "Please install APEL 8.7 or later."))) diff --git a/SEMI-MK b/SEMI-MK index 11c8137..6a0de68 100644 --- a/SEMI-MK +++ b/SEMI-MK @@ -5,7 +5,7 @@ ;;; Code: (defun config-semi () - (let (prefix exec-prefix lisp-dir) + (let (prefix exec-prefix lisp-dir version-specific-lisp-dir) (and (setq prefix (car command-line-args-left)) (or (string-equal "NONE" prefix) (defvar PREFIX prefix) @@ -21,6 +21,14 @@ (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 "SEMI-CFG") (load-file "SEMI-ELS") -- 1.7.10.4