1 ;;; build.el --- Builds EMchat.
3 ;; Copyright (C) 2006 Sebastian Freundt
4 ;; Copyright (C) 2007 - 2011 Steve Youngs
6 ;; Author: Sebastian Freundt <hroptatyr@sxemacs.org>
7 ;; Maintainer: EMchat Development Team
10 ;; This file is part of EMchat.
12 ;; Redistribution and use in source and binary forms, with or without
13 ;; modification, are permitted provided that the following conditions
16 ;; 1. Redistributions of source code must retain the above copyright
17 ;; notice, this list of conditions and the following disclaimer.
19 ;; 2. Redistributions in binary form must reproduce the above copyright
20 ;; notice, this list of conditions and the following disclaimer in the
21 ;; documentation and/or other materials provided with the distribution.
23 ;; 3. Neither the name of the author nor the names of any contributors
24 ;; may be used to endorse or promote products derived from this
25 ;; software without specific prior written permission.
27 ;; THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR
28 ;; IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
29 ;; WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
30 ;; DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
31 ;; FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
32 ;; CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
33 ;; SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
34 ;; BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
35 ;; WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
36 ;; OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
37 ;; IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39 ;;; Synched up with: Not in FSF.
43 ;; This file is only used during EMchat builds, it does what the name
44 ;; implies... builds the lisp, plus it generates auto-autoloads.el,
45 ;; custom-load.el and custom-define.el files.
48 (setq stack-trace-on-error t)
50 (defvar wd default-directory)
53 (defvar needed '(cus-dep autoload bytecomp byte-optimize font))
54 (mapcar #'require needed)
56 (defalias #'executable-find #'ignore)
58 (let ((pname "emchat")
60 (update-autoload-files adir pname)
61 (Custom-make-dependencies adir)
62 (update-custom-define-files adir pname))
68 (let ((file (symbol-name sym)))
69 (when (string= file "custom-defines.el")
70 (autoload 'emchat-emphasis-custom-with-format
71 "emchat-emphasis" nil nil 'macro))
72 (byte-compile-file (expand-file-name file wd))))
78 ;;; build.el ends here