Initial Commit
[packages] / xemacs-packages / oo-browser / Make-Env
1 #
2 # SUMMARY:      Build OO-Browser Environments in batch/background modes.
3 #
4 # AUTHOR:       Bob Weiner
5 # ORG:          BeOpen.com
6 #               The Force for Open Source(TM)
7 #
8 #               Web:    www.beopen.com - Learn all about Open Source.
9 #               E-mail: <info@beopen.com>  
10 #
11 # ORIG-DATE:     6-Oct-94 at 03:42:38
12 # LAST-MOD:      9-Jun-99 at 18:02:52 by Bob Weiner
13 #
14 # Copyright (C) 1994-1999  BeOpen.com
15 # See the file BR-COPY for license information.
16 #
17 # This file is part of the OO-Browser.
18 #
19 # DESCRIPTION:  
20 #
21 # USAGE:  Called from "br-env.el".  Do not try to call any targets in here
22 #         by hand unless you understand how to set things up by hand.
23 #
24 #         make -f Env-Make oo-browser-env
25 #   or
26 #         make -f Env-Make oo-browser-env-debug
27 #
28 #   The latter target is for debugging background building.
29 #
30 # DESCRIP-END.
31
32 ##########################################################################
33 #                         CONFIGURABLE SECTION                           #
34 ##########################################################################
35
36 # Binaries for various versions of Emacs.  Set 'EMACS' below to the one you
37 # want to use to byte-compile Lisp files.
38 EMACS19 = emacs19
39 EMACS18 = emacs
40 INFODOCK = infodock.bin
41 XEMACS = xemacs
42
43 # Emacs version used to byte-compile .el files into .elc's.
44 EMACS = $(XEMACS)
45
46 # Site-specific Emacs Lisp libraries to load before byte-compiling any files
47 # from this package.  Typically the only reason to set this is to get Emacs
48 # to include the directory of this package into its load-path variable, which
49 # determines where it will find Lisp library files to load.
50 #
51 # InfoDock and XEmacs 19.12 or higher include this package and automatically
52 # add its directory to load-path.  Under Emacs 19, if you add this directory
53 # to load-path in your site-lisp/site-start.el file, then you need not change
54 # this setting since site-start is automatically loaded whenever Emacs starts
55 # up.  If, however, you set load-path in your personal ~/.emacs file, you
56 # must add that to this setting.
57 #
58 # You must include the .el or .elc file suffix on each library name and each
59 # must be preceded by the `-l ' command-line flag.  If the directory in which
60 # the library is stored will not be in your Emacs load-path when Emacs
61 # attempts to load the library, you must include the full pathname to the
62 # library.  Here is an example setting.
63 #
64 # SITE_PRELOADS = -l ~/.emacs -l set-load-path.el
65 #
66 SITE_PRELOADS =
67
68 # Shell used to process this Makefile.  Bourne shell syntax is required.
69 SHELL = /bin/sh
70
71 ##########################################################################
72 #                     NO CHANGES REQUIRED BELOW HERE                     #
73 ##########################################################################
74
75 # Libraries that must be pre-loaded before trying to byte-compile anything.
76 PRELOADS = $(SITE_PRELOADS) -l ./br-start.elc -l ./br-env.elc
77
78 # Compile in batch mode. Under Emacs 19 and XEmacs, load
79 # site-lisp/site-start.el, which may set load-path.
80 BATCHFLAGS = -batch
81
82 # This target is used for background building of OO-Browser Environments.
83 # Don't change the name of the target since it is used in "br-env.el".
84 # Don't try to use this target manually unless you first cd to the directory
85 # where the OO-Browser program code lives and set the following 2 environment
86 # variables:
87 #    OO_BROWSER_ENV = space-separated Environment specification pathnames to build
88 #    EMACSLOADPATH  = colon separated string of Emacs Lisp directories,
89 #                     including the ones for the OO-Browser and Hyperbole
90 #                     support code
91 oo-browser-env:
92         $(EMACS) $(BATCHFLAGS) $(PRELOADS) ${OO_BROWSER_ENV} -f br-env-batch-build
93
94 # This target presently works under InfoDock and XEmacs only.
95 # It is used to debug background building of environments when necessary.
96 oo-browser-env-debug:
97         $(EMACS) $(BATCHFLAGS) $(PRELOADS) ${OO_BROWSER_ENV} \
98         -eval "(call-with-condition-handler 'really-early-error-handler 'br-env-batch-build)"