[jdee-devel] More customizable build system
Brought to you by:
paullandes
From: Espen W. <es...@gr...> - 2008-05-30 18:32:25
|
The following patch (against the phil_lord/dimitre_liotev_new_build branch) makes build.el load "local-build.el" if it exists before starting the byte-compile. The idea is to have a place for local customizations of load-path, byte-compile-warnings etc.; build.el's system of using environment variables doesn't work all that well on a Debian-based system if you've installed cedet etc. as packages. My local-build.el looks like this: (setq byte-compile-warnings '(not cl-functions)) (add-to-list 'load-path "/usr/share/emacs-snapshot/site-lisp/cedet-common") (add-to-list 'load-path "/usr/share/emacs-snapshot/site-lisp/eieio") (add-to-list 'load-path "/usr/share/emacs-snapshot/site-lisp/semantic") (add-to-list 'load-path "/usr/share/emacs-snapshot/site-lisp/elib") Index: build.el =================================================================== --- build.el (revision 41) +++ build.el (working copy) @@ -11,6 +11,11 @@ ;; Elib packages and the environment variables CEDET_HOME and ELIB_HOME ;; must be defined in your environment. +(let ((local-build-file (expand-file-name "local-build.el" + (file-name-directory load-file-name)))) + (when (file-exists-p local-build-file) + (load local-build-file))) + (add-to-list 'load-path (concat (getenv "CEDET_HOME") "/common")) (add-to-list 'load-path (concat (getenv "CEDET_HOME") "/eieio")) (add-to-list 'load-path (concat (getenv "CEDET_HOME") "/semantic")) -- Espen Wiborg <es...@gr...> A twisted mind is a joy forever. |