X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=APEL-MK;h=09ea4c2cf019855ae78233b25b6b375083236a1d;hb=0098d258da77ab1c9ca7ab5711700ae14563eaa5;hp=a173c008c4cbc017f8c9335f67585233a733b400;hpb=00eaae925515d8e5e6a0a84adfe2740b9815d61d;p=elisp%2Fapel.git diff --git a/APEL-MK b/APEL-MK index a173c00..09ea4c2 100644 --- a/APEL-MK +++ b/APEL-MK @@ -5,7 +5,7 @@ ;;; 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) @@ -16,6 +16,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 "APEL-CFG") (or (boundp 'apel-modules) (load-file "APEL-ELS") @@ -24,9 +32,6 @@ )) (defun compile-apel () - ;;(add-to-list 'load-path (expand-file-name "../emu")) - ;;(add-to-list 'load-path ".") - ;;(require 'install) (config-apel) (load "EMU-ELS") (load-file "APEL-ELS") @@ -36,7 +41,6 @@ (defun install-apel () (compile-apel) - ;;(config-apel) (install-elisp-modules emu-modules "." EMU_DIR) (install-elisp-modules apel-modules "." APEL_DIR) ) @@ -57,6 +61,10 @@ (defun install-apel-package () (config-apel-package) (load "EMU-ELS") + + (compile-elisp-modules emu-modules ".") + (compile-elisp-modules apel-modules ".") + (let ((dir (expand-file-name APEL_PREFIX (expand-file-name "lisp" PACKAGEDIR)))) @@ -74,4 +82,21 @@ (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