Mercurial > hg > xemacs-beta
comparison Makefile.in @ 163:0132846995bd r20-3b8
Import from CVS: tag r20-3b8
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:43:35 +0200 |
parents | 3bb7ccffb0c0 |
children | 5a88923fcbfe |
comparison
equal
deleted
inserted
replaced
162:4de2936b4e77 | 163:0132846995bd |
---|---|
1 # DIST: This is the distribution Makefile for XEmacs. configure can | 1 ## DIST: This is the distribution Makefile for XEmacs. configure can |
2 # DIST: make most of the changes to this file you might want, so try | 2 ## DIST: make most of the changes to this file you might want, so try |
3 # DIST: that first. | 3 ## DIST: that first. |
4 | 4 |
5 # This file is part of XEmacs. | 5 ## This file is part of XEmacs. |
6 | 6 |
7 # XEmacs is free software; you can redistribute it and/or modify it | 7 ## XEmacs is free software; you can redistribute it and/or modify it |
8 # under the terms of the GNU General Public License as published by the | 8 ## under the terms of the GNU General Public License as published by the |
9 # Free Software Foundation; either version 2, or (at your option) any | 9 ## Free Software Foundation; either version 2, or (at your option) any |
10 # later version. | 10 ## later version. |
11 | 11 |
12 # XEmacs is distributed in the hope that it will be useful, but WITHOUT | 12 ## XEmacs is distributed in the hope that it will be useful, but WITHOUT |
13 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | 13 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
14 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | 14 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
15 # for more details. | 15 ## for more details. |
16 | 16 |
17 # You should have received a copy of the GNU General Public License | 17 ## You should have received a copy of the GNU General Public License |
18 # along with XEmacs; see the file COPYING. If not, write to | 18 ## along with XEmacs; see the file COPYING. If not, write to |
19 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 19 ## the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
20 # Boston, MA 02111-1307, USA. | 20 ## Boston, MA 02111-1307, USA. |
21 | 21 |
22 # make all to compile and build XEmacs. | 22 ## make all to compile and build XEmacs. |
23 # make install to build and install it. | 23 ## make install to build and install it. |
24 # make install-only to install after a previous complete build | 24 ## make install-only to install after a previous complete build |
25 # make TAGS to update tags tables. | 25 ## make TAGS to update tags tables. |
26 # | 26 |
27 # make clean or make mostlyclean | 27 ## make clean or make mostlyclean |
28 # Delete all files from the current directory that are normally | 28 ## Delete all files from the current directory that are normally |
29 # created by building the program. Don't delete the files that | 29 ## created by building the program. Don't delete the files that |
30 # record the configuration. Also preserve files that could be made | 30 ## record the configuration. Also preserve files that could be made |
31 # by building, but normally aren't because the distribution comes | 31 ## by building, but normally aren't because the distribution comes |
32 # with them. | 32 ## with them. |
33 # | 33 |
34 # Delete `.dvi' files here if they are not part of the distribution. | 34 ## Delete `.dvi' files here if they are not part of the distribution. |
35 # | 35 |
36 # make distclean | 36 ## make distclean |
37 # Delete all files from the current directory that are created by | 37 ## Delete all files from the current directory that are created by |
38 # configuring or building the program. If you have unpacked the | 38 ## configuring or building the program. If you have unpacked the |
39 # source and built the program without creating any other files, | 39 ## source and built the program without creating any other files, |
40 # `make distclean' should leave only the files that were in the | 40 ## `make distclean' should leave only the files that were in the |
41 # distribution. | 41 ## distribution. |
42 # | 42 |
43 # make realclean | 43 ## make realclean |
44 # Delete everything from the current directory that can be | 44 ## Delete everything from the current directory that can be |
45 # reconstructed with this Makefile. This typically includes | 45 ## reconstructed with this Makefile. This typically includes |
46 # everything deleted by distclean, plus more: C source files | 46 ## everything deleted by distclean, plus more: C source files |
47 # produced by Bison, tags tables, info files, and so on. | 47 ## produced by Bison, tags tables, info files, and so on. |
48 # | 48 |
49 # make extraclean | 49 ## make extraclean |
50 # Still more severe - delete backup and autosave files, too. | 50 ## Still more severe - delete backup and autosave files, too. |
51 | 51 |
52 SHELL = /bin/sh | 52 SHELL = /bin/sh |
53 @SET_MAKE@ | 53 @SET_MAKE@ |
54 | 54 |
55 # ==================== Things `configure' Might Edit ==================== | 55 ## ==================== Things `configure' Might Edit ==================== |
56 | 56 |
57 CC=@CC@ | 57 CC=@CC@ |
58 CPP=@CPP@ | 58 CPP=@CPP@ |
59 LN_S=@LN_S@ | 59 LN_S=@LN_S@ |
60 CFLAGS=@CFLAGS@ | 60 CFLAGS=@CFLAGS@ |
61 YACC=@YACC@ | 61 YACC=@YACC@ |
62 | 62 pwd=/bin/pwd |
63 ### These help us choose version- and architecture-specific directories | 63 RM=rm -f |
64 ### to install files in. | 64 |
65 | 65 ## These help us choose version- and architecture-specific directories |
66 ### This should be the number of the XEmacs version we're building, | 66 ## to install files in. |
67 ### like `19.12' or `19.13'. | 67 |
68 ## This should be the number of the XEmacs version we're building, | |
69 ## like `19.12' or `19.13'. | |
68 version=@version@ | 70 version=@version@ |
69 | 71 |
70 ### This should be the name of the configuration we're building XEmacs | 72 ## This should be the name of the configuration we're building XEmacs |
71 ### for, like `mips-dec-ultrix' or `sparc-sun-sunos'. | 73 ## for, like `mips-dec-ultrix' or `sparc-sun-sunos'. |
72 configuration=@configuration@ | 74 configuration=@configuration@ |
73 | 75 |
74 # ==================== Where To Install Things ==================== | 76 ## ==================== Where To Install Things ==================== |
75 | 77 |
76 # The default location for installation. Everything is placed in | 78 ## The default location for installation. Everything is placed in |
77 # subdirectories of this directory. The default values for many of | 79 ## subdirectories of this directory. The default values for many of |
78 # the variables below are expressed in terms of this one, so you may | 80 ## the variables below are expressed in terms of this one, so you may |
79 # not need to change them. This defaults to /usr/local. | 81 ## not need to change them. This defaults to /usr/local. |
80 prefix=@prefix@ | 82 prefix=@prefix@ |
81 | 83 |
82 # Like `prefix', but used for architecture-specific files. | 84 ## Like `prefix', but used for architecture-specific files. |
83 exec_prefix=@exec_prefix@ | 85 exec_prefix=@exec_prefix@ |
84 | 86 |
85 # Where to install XEmacs and other binaries that people will want to | 87 ## Where to install XEmacs and other binaries that people will want to |
86 # run directly (like etags). | 88 ## run directly (like etags). |
87 bindir=@bindir@ | 89 bindir=@bindir@ |
88 | 90 |
89 # Where to install architecture-independent data files. ${lispdir} | 91 ## Where to install architecture-independent data files. |
90 # and ${etcdir} are subdirectories of this. | 92 ## ${lispdir} and ${etcdir} are subdirectories of this. |
91 datadir=@datadir@ | 93 datadir=@datadir@ |
92 | 94 |
93 pkgdir=@pkgdir@ | 95 pkgdir=@pkgdir@ |
94 | 96 |
95 # Where to install and expect the files that XEmacs modifies as it | 97 ## Where to install and expect the files that XEmacs modifies as it runs. |
96 # runs. These files are all architecture-independent. Right now, the | 98 ## These files are all architecture-independent. Right now, the |
97 # only such data is the locking directory; ${lockdir} is a | 99 ## only such data is the locking directory; |
98 # subdirectory of this. | 100 ## ${lockdir} is a subdirectory of this. |
99 statedir=@statedir@ | 101 statedir=@statedir@ |
100 | 102 |
101 # Where to install and expect executable files to be run by XEmacs | 103 ## Where to install and expect executable files to be run by XEmacs |
102 # rather than directly by users, and other architecture-dependent | 104 ## rather than directly by users, and other architecture-dependent data |
103 # data. ${archlibdir} is a subdirectory of this. | 105 ## ${archlibdir} is a subdirectory of this. |
104 libdir=@libdir@ | 106 libdir=@libdir@ |
105 | 107 |
106 # Where to install XEmacs's man pages, and what extension they should have. | 108 ## Where to install XEmacs's man pages, and what extension they should have. |
107 mandir=@mandir@ | 109 mandir=@mandir@ |
108 manext=.1 | 110 manext=.1 |
109 | 111 |
110 # Where to install and expect the info files describing XEmacs. In the | 112 ## Where to install and expect the info files describing XEmacs. In the |
111 # past, this defaulted to a subdirectory of ${prefix}/lib/xemacs, but | 113 ## past, this defaulted to a subdirectory of ${prefix}/lib/xemacs, but |
112 # since there are now many packages documented with the texinfo | 114 ## since there are now many packages documented with the texinfo |
113 # system, it is inappropriate to imply that it is part of XEmacs. | 115 ## system, it is inappropriate to imply that it is part of XEmacs. |
114 infodir=@infodir@ | 116 infodir=@infodir@ |
115 | 117 |
116 # This is set to 'yes' if the user specified the --infodir flag at | 118 ## This is set to 'yes' if the user specified the --infodir flag at |
117 # configuration time. | 119 ## configuration time. |
118 infodir_user_defined=@infodir_user_defined@ | 120 infodir_user_defined=@infodir_user_defined@ |
119 | 121 |
120 # Where to find the source code. The source code for XEmacs's C kernel is | 122 ## Where to find the source code. The source code for XEmacs's C kernel is |
121 # expected to be in ${srcdir}/src, and the source code for XEmacs's | 123 ## expected to be in ${srcdir}/src, and the source code for XEmacs's |
122 # utility programs is expected to be in ${srcdir}/lib-src. This is | 124 ## utility programs is expected to be in ${srcdir}/lib-src. This is |
123 # set by the configure script's `--srcdir' option. | 125 ## set by the configure script's `--srcdir' option. |
124 srcdir=@srcdir@ | 126 srcdir=@srcdir@ |
125 | 127 |
126 # ==================== XEmacs-specific directories ==================== | 128 ## ==================== XEmacs-specific directories ==================== |
127 | 129 |
128 # These variables hold the values XEmacs will actually use. They are | 130 ## These variables hold the values XEmacs will actually use. They are |
129 # based on the values of the standard Make variables above. | 131 ## based on the values of the standard Make variables above. |
130 | 132 |
131 # Where to install the lisp files distributed with | 133 ## Where to install the lisp files distributed with |
132 # XEmacs. This includes the XEmacs version, so that the | 134 ## XEmacs. This includes the XEmacs version, so that the |
133 # lisp files for different versions of XEmacs will install | 135 ## lisp files for different versions of XEmacs will install |
134 # themselves in separate directories. | 136 ## themselves in separate directories. |
135 lispdir=@lispdir@ | 137 lispdir=@lispdir@ |
136 | 138 |
137 # This is set to 'yes' if the user specified the --lispdir or | 139 ## This is set to 'yes' if the user specified the --lispdir or |
138 # --datadir flag at configuration time. | 140 ## --datadir flag at configuration time. |
139 lispdir_user_defined=@lispdir_user_defined@ | 141 lispdir_user_defined=@lispdir_user_defined@ |
140 | 142 |
141 # Directories XEmacs should search for lisp files specific | 143 ## Directories XEmacs should search for lisp files specific |
142 # to this site (i.e. customizations), before consulting | 144 ## to this site (i.e. customizations), before consulting |
143 # ${lispdir}. This should be a colon-separated list of | 145 ## ${lispdir}. This should be a colon-separated list of |
144 # directories. | 146 ## directories. |
145 sitelispdir=@sitelispdir@ | 147 sitelispdir=@sitelispdir@ |
146 | 148 |
147 # Where XEmacs will search for its lisp files while | 149 ## Where XEmacs will search for its lisp files while |
148 # building. This is only used during the process of | 150 ## building. This is only used during the process of |
149 # compiling XEmacs, to help XEmacs find its lisp files | 151 ## compiling XEmacs, to help XEmacs find its lisp files |
150 # before they've been installed in their final location. | 152 ## before they've been installed in their final location. |
151 # It's usually identical to lispdir, except that the | 153 ## It's usually identical to lispdir, except that the |
152 # entry for the directory containing the installed lisp | 154 ## entry for the directory containing the installed lisp |
153 # files has been replaced with ../lisp. This should be a | 155 ## files has been replaced with ../lisp. This should be a |
154 # colon-separated list of directories. | 156 ## colon-separated list of directories. |
155 buildlispdir=${srcdir}/lisp | 157 buildlispdir=${srcdir}/lisp |
156 | 158 |
157 # Where to install the other architecture-independent | 159 ## Where to install the other architecture-independent |
158 # data files distributed with XEmacs (like the tutorial, | 160 ## data files distributed with XEmacs (like the tutorial, |
159 # the cookie recipes and the Zippy database). This path | 161 ## the cookie recipes and the Zippy database). This path |
160 # usually contains the XEmacs version number, so the data | 162 ## usually contains the XEmacs version number, so the data |
161 # files for multiple versions of XEmacs may be installed | 163 ## files for multiple versions of XEmacs may be installed |
162 # at once. | 164 ## at once. |
163 etcdir=@etcdir@ | 165 etcdir=@etcdir@ |
164 | 166 |
165 # This is set to 'yes' if the user specified the --etcdir or | 167 ## This is set to 'yes' if the user specified the --etcdir or |
166 # --datadir flag at configuration time. | 168 ## --datadir flag at configuration time. |
167 etcdir_user_defined=@etcdir_user_defined@ | 169 etcdir_user_defined=@etcdir_user_defined@ |
168 | 170 |
169 # Where to create and expect the locking directory, where | 171 ## Where to create and expect the locking directory, where |
170 # the XEmacs locking code keeps track of which files are | 172 ## the XEmacs locking code keeps track of which files are |
171 # currently being edited. | 173 ## currently being edited. |
172 lockdir=@lockdir@ | 174 lockdir=@lockdir@ |
173 | 175 |
174 # This is set to 'yes' if the user specified the --lockdir or | 176 ## This is set to 'yes' if the user specified the --lockdir or |
175 # --statedir flag at configuration time. | 177 ## --statedir flag at configuration time. |
176 lockdir_user_defined=@lockdir_user_defined@ | 178 lockdir_user_defined=@lockdir_user_defined@ |
177 | 179 |
178 # Where to put executables to be run by XEmacs rather than | 180 ## Where to put executables to be run by XEmacs rather than |
179 # the user. This path usually includes the XEmacs version | 181 ## the user. This path usually includes the XEmacs version |
180 # and configuration name, so that multiple configurations | 182 ## and configuration name, so that multiple configurations |
181 # for multiple versions of XEmacs may be installed at | 183 ## for multiple versions of XEmacs may be installed at |
182 # once. | 184 ## once. |
183 archlibdir=@archlibdir@ | 185 archlibdir=@archlibdir@ |
184 | 186 |
185 # This is set to 'yes' if the user specified any of --exec-prefix, | 187 ## This is set to 'yes' if the user specified any of --exec-prefix, |
186 # --libdir or --archlibdir at configuration time. | 188 ## --libdir or --archlibdir at configuration time. |
187 archlibdir_user_defined=@archlibdir_user_defined@ | 189 archlibdir_user_defined=@archlibdir_user_defined@ |
188 | 190 |
189 # ==================== Utility Programs for the Build ==================== | 191 ## ==================== Utility Programs for the Build ==================== |
190 | 192 |
191 # Allow the user to specify the install program. | 193 ## Allow the user to specify the install program. |
192 INSTALL = @INSTALL@ | 194 INSTALL = @INSTALL@ |
193 INSTALL_PROGRAM = @INSTALL_PROGRAM@ | 195 INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
194 INSTALL_DATA = @INSTALL_DATA@ | 196 INSTALL_DATA = @INSTALL_DATA@ |
195 | 197 |
196 # ============================= Targets ============================== | 198 ## ============================= Targets ============================== |
197 | 199 |
198 # Subdirectories to make recursively. `lisp' is not included | 200 ## Subdirectories to make recursively. `lisp' is not included |
199 # because the compiled lisp files are part of the distribution | 201 ## because the compiled lisp files are part of the distribution |
200 # and you cannot remake them without installing XEmacs first. | 202 ## and you cannot remake them without installing XEmacs first. |
201 MAKE_SUBDIR = @MAKE_SUBDIR@ | 203 MAKE_SUBDIR = @MAKE_SUBDIR@ |
202 | 204 |
203 # Subdirectories that can be made recursively. | 205 ## Subdirectories that can be made recursively. |
204 SUBDIR = ${MAKE_SUBDIR} man | 206 SUBDIR = ${MAKE_SUBDIR} man |
205 | 207 |
206 # The makefiles of the directories in ${MAKE_SUBDIR}. | 208 ## The makefiles of the directories in ${MAKE_SUBDIR}. |
207 SUBDIR_MAKEFILES = @SUBDIR_MAKEFILES@ | 209 SUBDIR_MAKEFILES = @SUBDIR_MAKEFILES@ |
208 | 210 |
209 # Subdirectories to install, and where they'll go. | 211 ## Subdirectories to install, and where they'll go. |
210 # lib-src's makefile knows how to install it, so we don't do that here. | 212 ## lib-src's makefile knows how to install it, so we don't do that here. |
211 # When installing the info files, we need to do special things to | 213 ## When installing the info files, we need to do special things to |
212 # avoid nuking an existing dir file, so we don't do that here; | 214 ## avoid nuking an existing dir file, so we don't do that here; |
213 # instead, we have written out explicit code in the `install' targets. | 215 ## instead, we have written out explicit code in the `install' targets. |
214 COPYDIR = ${srcdir}/etc ${srcdir}/lisp | 216 COPYDIR = ${srcdir}/etc ${srcdir}/lisp |
215 COPYDESTS = ${etcdir} ${lispdir} | 217 COPYDESTS = ${etcdir} ${lispdir} |
216 GENERATED_HEADERS = src/paths.h src/Emacs.ad.h src/config.h src/puresize_adjust.h | 218 GENERATED_HEADERS = src/paths.h src/Emacs.ad.h src/puresize_adjust.h src/config.h lwlib/config.h |
217 | 219 |
218 all: ${GENERATED_HEADERS} ${MAKE_SUBDIR} | 220 all: ${GENERATED_HEADERS} ${MAKE_SUBDIR} |
219 | 221 |
220 # For performance and consistency, no built-in rules | 222 ## For performance and consistency, no built-in rules |
221 .SUFFIXES: | 223 .SUFFIXES: |
222 | 224 |
223 .NO_PARALLEL: ${GENERATED_HEADERS} ${MAKE_SUBDIR} dump-elcs | 225 .NO_PARALLEL: ${GENERATED_HEADERS} ${MAKE_SUBDIR} dump-elcs |
224 .PHONY: ${SUBDIR} all beta all-elc all-elcs dump-elc dump-elcs autoloads | 226 .PHONY: ${SUBDIR} all beta all-elc all-elcs dump-elc dump-elcs autoloads |
225 | 227 |
226 # Convenience target for XEmacs beta testers | 228 ## Convenience target for XEmacs beta testers |
227 beta: clean all-elc | 229 beta: clean all-elc |
228 | 230 |
229 # Build XEmacs and recompile out-of-date and missing .elc files along | 231 ## Build XEmacs and recompile out-of-date and missing .elc files along |
230 # the way. | 232 ## the way. |
231 all-elc all-elcs: lib-src lwlib dump-elcs src | 233 all-elc all-elcs: lib-src lwlib dump-elcs src |
232 MAKE='$(MAKE)' sh ${srcdir}/lib-src/update-elc.sh | 234 MAKE='$(MAKE)' sh ${srcdir}/lib-src/update-elc.sh |
233 | 235 |
234 # Sub-target for all-elc. | 236 ## Sub-target for all-elc. |
235 dump-elc dump-elcs: ${GENERATED_HEADERS} FRC.dump-elcs | 237 dump-elc dump-elcs: ${GENERATED_HEADERS} FRC.dump-elcs |
236 cd src && $(MAKE) dump-elcs $(MFLAGS) \ | 238 cd src && $(MAKE) dump-elcs $(MFLAGS) \ |
237 CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' | 239 CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' |
238 | 240 |
239 autoloads: src | 241 autoloads: src |
240 MAKE='$(MAKE)' sh ${srcdir}/lib-src/update-autoloads.sh | 242 MAKE='$(MAKE)' sh ${srcdir}/lib-src/update-autoloads.sh |
241 | 243 |
242 # We force the rebuilding of src/paths.h because the user might give | 244 ## We force the rebuilding of src/paths.h because the user might give |
243 # different values for the various directories. Since we use | 245 ## different values for the various directories. Since we use |
244 # move-if-change, src/paths.h only actually changes if the user did | 246 ## move-if-change, src/paths.h only actually changes if the user did |
245 # something notable, so the only unnecessary work we do is in building | 247 ## something notable, so the only unnecessary work we do is in building |
246 # src/paths.h.tmp, which isn't much. Note that sed is not in /bin on | 248 ## src/paths.h.tmp, which isn't much. Note that sed is not in /bin on |
247 # 386bsd. | 249 ## 386bsd. |
248 src/paths.h: Makefile ${srcdir}/src/paths.h.in FRC.src.paths.h | 250 src/paths.h: Makefile ${srcdir}/src/paths.h.in FRC.src.paths.h |
249 @echo "Producing \`src/paths.h' from \`src/paths.h.in'." | 251 @echo "Producing \`src/paths.h' from \`src/paths.h.in'." |
250 @-rm -f src/paths.h.tmp | 252 @$(RM) src/paths.h.tmp |
251 @cp ${srcdir}/src/paths.h.in src/paths.h.tmp | 253 @cp ${srcdir}/src/paths.h.in src/paths.h.tmp |
252 @-chmod 0644 src/paths.h.tmp | 254 @-chmod 0644 src/paths.h.tmp |
253 @(echo '#define PATH_PREFIX "${prefix}"'; \ | 255 @(echo '#define PATH_PREFIX "${prefix}"'; \ |
254 if test "${lispdir_user_defined}" = "yes"; \ | 256 if test "${lispdir_user_defined}" = "yes"; \ |
255 then echo '#define PATH_LOADSEARCH "${lispdir}"'; \ | 257 then echo '#define PATH_LOADSEARCH "${lispdir}"'; \ |
271 then echo '#define PATH_INFO "${infodir}"'; \ | 273 then echo '#define PATH_INFO "${infodir}"'; \ |
272 else echo '/* #define PATH_INFO "${infodir}" */'; \ | 274 else echo '/* #define PATH_INFO "${infodir}" */'; \ |
273 fi; ) >> src/paths.h.tmp; \ | 275 fi; ) >> src/paths.h.tmp; \ |
274 sh ${srcdir}/move-if-change src/paths.h.tmp src/paths.h | 276 sh ${srcdir}/move-if-change src/paths.h.tmp src/paths.h |
275 | 277 |
276 # We have to force the building of Emacs.ad.h as well in order to get it | 278 ## We have to force the building of Emacs.ad.h as well in order to get it |
277 # updated correctly when VPATH is being used. Since we use move-if-change, | 279 ## updated correctly when VPATH is being used. Since we use move-if-change, |
278 # it will only actually change if the user modified ${etcdir}/Emacs.ad. | 280 ## it will only actually change if the user modified ${etcdir}/Emacs.ad. |
279 src/Emacs.ad.h: ${srcdir}/etc/Emacs.ad | 281 src/Emacs.ad.h: ${srcdir}/etc/Emacs.ad |
280 @echo "Producing \`src/Emacs.ad.h' from \`etc/Emacs.ad'." | 282 @echo "Producing \`src/Emacs.ad.h' from \`etc/Emacs.ad'." |
281 -rm -f src/Emacs.ad.h | 283 @$(RM) src/Emacs.ad.h |
282 @(echo "/* Do not edit this file!" ; \ | 284 @(echo "/* Do not edit this file!" ; \ |
283 echo " Automatically generated from ${srcdir}/etc/Emacs.ad" ; \ | 285 echo " Automatically generated from ${srcdir}/etc/Emacs.ad" ; \ |
284 echo " */" ; \ | 286 echo " */" ; \ |
285 /bin/sh ${srcdir}/lib-src/ad2c ${srcdir}/etc/Emacs.ad ) > \ | 287 /bin/sh ${srcdir}/lib-src/ad2c ${srcdir}/etc/Emacs.ad ) > \ |
286 src/Emacs.ad.h | 288 src/Emacs.ad.h |
292 echo "#define PURESIZE_ADJUSTMENT 0") > $@ | 294 echo "#define PURESIZE_ADJUSTMENT 0") > $@ |
293 | 295 |
294 src: @SRC_SUBDIR_DEPS@ FRC.src | 296 src: @SRC_SUBDIR_DEPS@ FRC.src |
295 lib-src: FRC.lib-src | 297 lib-src: FRC.lib-src |
296 lwlib: FRC.lwlib | 298 lwlib: FRC.lwlib |
299 dynodump: FRC.dynodump | |
300 FRC.src FRC.lib-src FRC.lwlib FRC.dynodump: | |
297 | 301 |
298 .RECURSIVE: ${SUBDIR} | 302 .RECURSIVE: ${SUBDIR} |
299 | 303 |
300 ${SUBDIR}: ${SUBDIR_MAKEFILES} ${GENERATED_HEADERS} FRC | 304 ${SUBDIR}: ${SUBDIR_MAKEFILES} ${GENERATED_HEADERS} FRC |
301 cd $@ && $(MAKE) all $(MFLAGS) \ | 305 cd $@ && $(MAKE) all $(MFLAGS) \ |
311 ./config.status | 315 ./config.status |
312 | 316 |
313 lwlib/Makefile: ${srcdir}/lwlib/Makefile.in.in config.status | 317 lwlib/Makefile: ${srcdir}/lwlib/Makefile.in.in config.status |
314 ./config.status | 318 ./config.status |
315 | 319 |
320 lwlib/config.h: ${srcdir}/lwlib/config.h.in | |
321 ./config.status && touch $@ | |
322 | |
316 src/config.h: ${srcdir}/src/config.h.in | 323 src/config.h: ${srcdir}/src/config.h.in |
317 ./config.status | 324 ./config.status && touch $@ |
318 | 325 |
319 # ==================== Installation ==================== | 326 ## ==================== Installation ==================== |
320 | 327 |
321 ## If we let lib-src do its own installation, that means we | 328 ## If we let lib-src do its own installation, that means we |
322 ## don't have to duplicate the list of utilities to install in | 329 ## don't have to duplicate the list of utilities to install in |
323 ## this Makefile as well. | 330 ## this Makefile as well. |
324 | 331 |
344 install-only: ${MAKE_SUBDIR} install-arch-dep install-arch-indep | 351 install-only: ${MAKE_SUBDIR} install-arch-dep install-arch-indep |
345 | 352 |
346 install: all install-arch-dep install-arch-indep; | 353 install: all install-arch-dep install-arch-indep; |
347 | 354 |
348 install-arch-dep: mkdir | 355 install-arch-dep: mkdir |
349 (cd lib-src && \ | 356 cd lib-src && \ |
350 $(MAKE) install $(MFLAGS) prefix=${prefix} \ | 357 $(MAKE) install $(MFLAGS) prefix=${prefix} \ |
351 exec_prefix=${exec_prefix} bindir=${bindir} libdir=${libdir} \ | 358 exec_prefix=${exec_prefix} bindir=${bindir} libdir=${libdir} \ |
352 archlibdir=${archlibdir}) | 359 archlibdir=${archlibdir} |
353 if [ `(cd ${archlibdir} && /bin/pwd)` != `(cd ./lib-src && /bin/pwd)` ]; \ | 360 if [ `(cd ${archlibdir} && $(pwd))` != `(cd ./lib-src && $(pwd))` ]; \ |
354 then \ | 361 then \ |
355 ${INSTALL_DATA} lib-src/DOC ${archlibdir}/DOC ; \ | 362 ${INSTALL_DATA} lib-src/DOC ${archlibdir}/DOC ; \ |
356 for subdir in `find ${archlibdir} -type d ! -name RCS ! -name SCCS ! -name CVS -print` ; do \ | 363 for subdir in `find ${archlibdir} -type d ! -name RCS ! -name SCCS ! -name CVS -print` ; do \ |
357 rm -rf $${subdir}/RCS $${subdir}/CVS $${subdir}/SCCS ; \ | 364 (cd $${subdir} && $(RM) -r RCS CVS SCCS \#* *~) ; |
358 rm -f $${subdir}/\#* $${subdir}/*~ ; \ | |
359 done ; \ | 365 done ; \ |
360 else true; fi | 366 else true; fi |
361 ${INSTALL_PROGRAM} src/xemacs ${bindir}/xemacs-${version} | 367 ${INSTALL_PROGRAM} src/xemacs ${bindir}/xemacs-${version} |
362 -chmod 0755 ${bindir}/xemacs-${version} | 368 -chmod 0755 ${bindir}/xemacs-${version} |
363 rm -f ${bindir}/xemacs | 369 $(RM) ${bindir}/xemacs |
364 (cd ${bindir} && ${LN_S} xemacs-${version} ./xemacs) | 370 cd ${bindir} && ${LN_S} xemacs-${version} ./xemacs |
365 | 371 |
366 install-arch-indep: mkdir | 372 install-arch-indep: mkdir |
367 -set ${COPYDESTS} ; \ | 373 -@set ${COPYDESTS} ; \ |
368 for dir in ${COPYDIR} ; do \ | 374 for dir in ${COPYDIR} ; do \ |
369 if [ `(cd $$1 && pwd)` != `(cd $${dir} && pwd)` ] ; then \ | 375 if [ `(cd $$1 && $(pwd))` != `(cd $${dir} && $(pwd))` ] ; then \ |
370 echo "rm -rf $$1" ; \ | 376 : do nothing - echo "rm -rf $$1" ; \ |
371 fi ; \ | 377 fi ; \ |
372 shift ; \ | 378 shift ; \ |
373 done | 379 done |
374 -set ${COPYDESTS} ; \ | 380 -set ${COPYDESTS} ; \ |
375 mkdir ${COPYDESTS} ; \ | 381 for dir in ${COPYDESTS} ; do test -d $${dir} || mkdir $${dir} ; done ; \ |
376 for dir in ${COPYDIR} ; do \ | 382 for dir in ${COPYDIR} ; do \ |
377 dest=$$1 ; shift ; \ | 383 dest=$$1 ; shift ; \ |
378 [ -d $${dir} ] \ | 384 test -d $${dir} \ |
379 && [ `(cd $${dir} && /bin/pwd)` != `(cd $${dest} && /bin/pwd)` ] \ | 385 -a `(cd $${dir} && $(pwd))` != `(cd $${dest} && $(pwd))` \ |
380 && (echo "Copying $${dir}..." ; \ | 386 && (echo "Copying $${dir}..." ; \ |
381 (cd $${dir} && tar -cf - . ) | \ | 387 (cd $${dir} && tar -cf - . ) | \ |
382 (cd $${dest} && umask 022 && tar -xf - );\ | 388 (cd $${dest} && umask 022 && tar -xf - );\ |
383 chmod 0755 $${dest}; \ | 389 chmod 0755 $${dest}; \ |
384 for subdir in `find $${dest} -type d ! -name RCS ! -name SCCS ! -name CVS -print` ; do \ | 390 for subdir in `find $${dest} -type d ! -name RCS ! -name SCCS ! -name CVS -print` ; do \ |
385 rm -rf $${subdir}/RCS $${subdir}/CVS $${subdir}/SCCS ; \ | 391 (cd $${subdir} && $(RM) -r RCS CVS SCCS \#* *~) ; \ |
386 rm -f $${subdir}/\#* $${subdir}/*~ ; \ | |
387 done) ; \ | 392 done) ; \ |
388 done | 393 done |
389 if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ]; \ | 394 if test `(cd ${srcdir}/info && $(pwd))` != `(cd ${infodir} && $(pwd))` && cd ${srcdir}/info; then \ |
390 then \ | 395 if test ! -f ${infodir}/dir -a -f dir ; then \ |
391 (cd ${srcdir}/info && \ | 396 ${INSTALL_DATA} ${srcdir}/info/dir ${infodir}/dir ; \ |
392 if [ ! -f ${infodir}/dir ] && [ -f dir ]; then \ | 397 fi ; \ |
393 ${INSTALL_DATA} ${srcdir}/info/dir ${infodir}/dir ; \ | 398 for file in *.info* ; do \ |
394 fi ; \ | 399 ${INSTALL_DATA} $${file} ${infodir}/$${file} ; \ |
395 for f in *.info* ; do \ | 400 chmod 0644 ${infodir}/$${file}; \ |
396 ${INSTALL_DATA} ${srcdir}/info/$$f ${infodir}/$$f ; \ | 401 done ; \ |
397 chmod 0644 ${infodir}/$$f; \ | 402 fi |
398 done); \ | 403 cd ${srcdir}/etc && \ |
399 else true; fi | 404 for page in xemacs etags ctags gnuserv gnuclient gnuattach gnudoit; do \ |
400 cd ${srcdir}/etc && for page in xemacs etags ctags gnuserv \ | 405 ${INSTALL_DATA} ${srcdir}/etc/$${page}.1 ${mandir}/$${page}${manext} ; \ |
401 gnuclient gnuattach gnudoit ; do \ | 406 chmod 0644 ${mandir}/$${page}${manext} ; \ |
402 ${INSTALL_DATA} ${srcdir}/etc/$${page}.1 ${mandir}/$${page}${manext} ; \ | 407 done |
403 chmod 0644 ${mandir}/$${page}${manext} ; \ | |
404 done | |
405 @echo "If you would like to save approximately 15M of disk space, do" | 408 @echo "If you would like to save approximately 15M of disk space, do" |
406 @echo "make gzip-el" | 409 @echo "make gzip-el" |
407 @echo "or you may run " | 410 @echo "or you may run " |
408 @echo lib-src/gzip-el.sh lispdir " from the command line." | 411 @echo lib-src/gzip-el.sh lispdir " from the command line." |
409 @echo "Where lispdir is where the lisp files were installed, i.e.," | 412 @echo "Where lispdir is where the lisp files were installed, i.e.," |
411 | 414 |
412 gzip-el: | 415 gzip-el: |
413 lib-src/gzip-el.sh ${lispdir} | 416 lib-src/gzip-el.sh ${lispdir} |
414 | 417 |
415 MAKEPATH=./lib-src/make-path | 418 MAKEPATH=./lib-src/make-path |
416 ### Build all the directories we're going to install XEmacs in. Since | 419 ## Build all the directories we're going to install XEmacs in. Since |
417 ### we may be creating several layers of directories (for example, | 420 ## we may be creating several layers of directories (for example, |
418 ### /usr/local/lib/xemacs-19.13/mips-dec-ultrix4.2), we use make-path | 421 ## /usr/local/lib/xemacs-19.13/mips-dec-ultrix4.2), we use make-path |
419 ### instead of mkdir. Not all systems' mkdirs have the `-p' flag. | 422 ## instead of mkdir. Not all systems' mkdirs have the `-p' flag. |
420 mkdir: FRC.mkdir | 423 mkdir: FRC.mkdir |
421 ${MAKEPATH} ${COPYDESTS} ${lockdir} ${infodir} ${mandir} \ | 424 ${MAKEPATH} ${COPYDESTS} ${lockdir} ${infodir} ${mandir} \ |
422 ${bindir} ${datadir} ${libdir} ${sitelispdir} ${pkdir} | 425 ${bindir} ${datadir} ${libdir} ${sitelispdir} ${pkdir} |
423 -chmod 0777 ${lockdir} | 426 -chmod 0777 ${lockdir} |
424 | 427 |
425 ### Delete all the installed files that the `install' target would | 428 ## Delete all the installed files that the `install' target would |
426 ### create (but not the noninstalled files such as `make all' would | 429 ## create (but not the noninstalled files such as `make all' would |
427 ### create). | 430 ## create). |
428 ### | 431 |
429 ### Don't delete the lisp and etc directories if they're in the source tree. | 432 #### Don't delete the lisp and etc directories if they're in the source tree. |
430 #### This target has not been updated in sometime and until it is it | 433 #### This target has not been updated in sometime and until it is it |
431 #### would be extremely dangerous for anyone to use it. | 434 #### would be extremely dangerous for anyone to use it. |
432 #uninstall: | 435 #uninstall: |
433 # (cd lib-src; \ | 436 # (cd lib-src; \ |
434 # $(MAKE) $(MFLAGS) uninstall \ | 437 # $(MAKE) $(MFLAGS) uninstall \ |
435 # prefix=${prefix} exec_prefix=${exec_prefix} \ | 438 # prefix=${prefix} exec_prefix=${exec_prefix} \ |
436 # bindir=${bindir} libdir=${libdir} archlibdir=${archlibdir}) | 439 # bindir=${bindir} libdir=${libdir} archlibdir=${archlibdir}) |
437 # for dir in ${lispdir} ${etcdir} ; do \ | 440 # for dir in ${lispdir} ${etcdir} ; do \ |
438 # case `(cd $${dir} ; pwd)` in \ | 441 # case `(cd $${dir} ; $(pwd))` in \ |
439 # `(cd ${srcdir} ; pwd)`* ) ;; \ | 442 # `(cd ${srcdir} ; $(pwd))`* ) ;; \ |
440 # * ) rm -rf $${dir} ;; \ | 443 # * ) $(RM) $${dir} ;; \ |
441 # esac ; \ | 444 # esac ; \ |
442 # case $${dir} in \ | 445 # case $${dir} in \ |
443 # ${datadir}/xemacs/${version}/* ) \ | 446 # ${datadir}/xemacs/${version}/* ) \ |
444 # rm -rf ${datadir}/xemacs/${version} \ | 447 # $(RM) -r ${datadir}/xemacs/${version} \ |
445 # ;; \ | 448 # ;; \ |
446 # esac ; \ | 449 # esac ; \ |
447 # done | 450 # done |
448 # (cd ${infodir} && rm -f cl* xemacs* forms* info* vip*) | 451 # cd ${infodir} && $(RM) cl* xemacs* forms* info* vip* |
449 # (cd ${mandir} && rm -f xemacs.1 etags.1 ctags.1 gnuserv.1) | 452 # cd ${mandir} && $(RM) xemacs.1 etags.1 ctags.1 gnuserv.1 |
450 # (cd ${bindir} && rm -f xemacs-${version} xemacs) | 453 # cd ${bindir} && $(RM) xemacs-${version} xemacs |
451 | 454 |
452 | 455 |
453 ### Some makes seem to remember that they've built something called FRC, | 456 ## Some makes seem to remember that they've built something called FRC, |
454 ### so you can only use a given FRC once per makefile. | 457 ## so you can only use a given FRC once per makefile. |
455 FRC FRC.src.paths.h FRC.src FRC.lib-src FRC.lwlib FRC.mkdir FRC.dump-elcs: | 458 FRC FRC.src.paths.h FRC.mkdir FRC.dump-elcs: |
456 FRC.mostlyclean FRC.clean FRC.distclean FRC.realclean: | 459 FRC.mostlyclean FRC.clean FRC.distclean FRC.realclean FRC.tags: |
457 | 460 |
458 # ==================== Cleaning up and miscellanea ==================== | 461 ## ==================== Cleaning up and miscellanea ==================== |
459 | 462 |
460 .PHONY: mostlyclean clean distclean realclean extraclean | 463 .PHONY: mostlyclean clean distclean realclean extraclean |
461 | 464 |
462 ### `mostlyclean' | 465 ## `mostlyclean' |
463 ### Like `clean', but may refrain from deleting a few files that people | 466 ## Like `clean', but may refrain from deleting a few files that people |
464 ### normally don't want to recompile. For example, the `mostlyclean' | 467 ## normally don't want to recompile. For example, the `mostlyclean' |
465 ### target for GCC does not delete `libgcc.a', because recompiling it | 468 ## target for GCC does not delete `libgcc.a', because recompiling it |
466 ### is rarely necessary and takes a lot of time. | 469 ## is rarely necessary and takes a lot of time. |
467 mostlyclean: FRC.mostlyclean | 470 mostlyclean: FRC.mostlyclean |
468 for d in $(MAKE_SUBDIR); do (cd $$d && $(MAKE) $(MFLAGS) $@); done | 471 for d in $(SUBDIR); do (cd $$d && $(MAKE) $(MFLAGS) $@); done |
469 -(cd man && $(MAKE) $(MFLAGS) $@) | 472 |
470 | 473 ## `clean' |
471 ### `clean' | 474 ## Delete all files from the current directory that are normally |
472 ### Delete all files from the current directory that are normally | 475 ## created by building the program. Don't delete the files that |
473 ### created by building the program. Don't delete the files that | 476 ## record the configuration. Also preserve files that could be made |
474 ### record the configuration. Also preserve files that could be made | 477 ## by building, but normally aren't because the distribution comes |
475 ### by building, but normally aren't because the distribution comes | 478 ## with them. |
476 ### with them. | 479 |
477 ### | 480 ## Delete `.dvi' files here if they are not part of the distribution. |
478 ### Delete `.dvi' files here if they are not part of the distribution. | |
479 clean: FRC.clean | 481 clean: FRC.clean |
480 for d in $(MAKE_SUBDIR); do (cd $$d && $(MAKE) $(MFLAGS) $@); done | 482 for d in $(SUBDIR); do (cd $$d && $(MAKE) $(MFLAGS) $@); done |
481 -(cd man && $(MAKE) $(MFLAGS) $@) | 483 $(RM) core |
482 rm -f core | 484 |
483 | 485 ## `distclean' |
484 ### `distclean' | 486 ## Delete all files from the current directory that are created by |
485 ### Delete all files from the current directory that are created by | 487 ## configuring or building the program. If you have unpacked the |
486 ### configuring or building the program. If you have unpacked the | 488 ## source and built the program without creating any other files, |
487 ### source and built the program without creating any other files, | 489 ## `make distclean' should leave only the files that were in the |
488 ### `make distclean' should leave only the files that were in the | 490 ## distribution. |
489 ### distribution. | |
490 top_distclean=\ | 491 top_distclean=\ |
491 rm -f config.status config.log config-tmp-* build-install Installation ; \ | 492 $(RM) config.status config.log config-tmp-* build-install Installation ; \ |
492 for d in src lib-src lwlib dynodump ; do \ | 493 for d in src lib-src lwlib dynodump ; do \ |
493 rm -f $$d/Makefile $$d/Makefile.in ; \ | 494 $(RM) $$d/Makefile $$d/Makefile.in ; \ |
494 done ; \ | 495 done ; \ |
495 rm -f core .sbinit Makefile lock/* | 496 $(RM) core .sbinit Makefile lock/* |
496 | 497 |
497 distclean: FRC.distclean | 498 distclean: FRC.distclean |
498 -for d in lock site-lisp; do test -d $$d || mkdir $$d; done | 499 for d in lock site-lisp; do test -d $$d || mkdir $$d; done |
499 for d in $(MAKE_SUBDIR); do (cd $$d && $(MAKE) $(MFLAGS) $@); done | 500 for d in $(SUBDIR); do (cd $$d && $(MAKE) $(MFLAGS) $@); done |
500 -(cd man && $(MAKE) $(MFLAGS) $@) | |
501 -${top_distclean} | 501 -${top_distclean} |
502 | 502 |
503 ### `realclean' | 503 ## `realclean' |
504 ### Delete everything from the current directory that can be | 504 ## Delete everything from the current directory that can be |
505 ### reconstructed with this Makefile. This typically includes | 505 ## reconstructed with this Makefile. This typically includes |
506 ### everything deleted by distclean, plus more: C source files | 506 ## everything deleted by distclean, plus more: C source files |
507 ### produced by Bison, tags tables, info files, and so on. | 507 ## produced by Bison, tags tables, info files, and so on. |
508 ### | 508 |
509 ### One exception, however: `make realclean' should not delete | 509 ## One exception, however: `make realclean' should not delete |
510 ### `configure' even if `configure' can be remade using a rule in the | 510 ## `configure' even if `configure' can be remade using a rule in the |
511 ### Makefile. More generally, `make realclean' should not delete | 511 ## Makefile. More generally, `make realclean' should not delete |
512 ### anything that needs to exist in order to run `configure' and then | 512 ## anything that needs to exist in order to run `configure' and then |
513 ### begin to build the program. | 513 ## begin to build the program. |
514 realclean: FRC.realclean | 514 realclean: FRC.realclean |
515 for d in $(MAKE_SUBDIR); do (cd $$d && $(MAKE) $(MFLAGS) $@); done | 515 for d in $(SUBDIR); do (cd $$d && $(MAKE) $(MFLAGS) $@); done |
516 -(cd man && $(MAKE) $(MFLAGS) $@) | |
517 -${top_distclean} | 516 -${top_distclean} |
518 | 517 |
519 ### This doesn't actually appear in the coding standards, but Karl | 518 ## This doesn't actually appear in the coding standards, but Karl |
520 ### says GCC supports it, and that's where the configuration part of | 519 ## says GCC supports it, and that's where the configuration part of |
521 ### the coding standards seem to come from. It's like distclean, but | 520 ## the coding standards seem to come from. It's like distclean, but |
522 ### it deletes backup and autosave files too. | 521 ## it deletes backup and autosave files too. |
523 extraclean: | 522 extraclean: |
524 for d in $(MAKE_SUBDIR); do (cd $$d && $(MAKE) $(MFLAGS) $@); done | 523 for d in $(SUBDIR); do (cd $$d && $(MAKE) $(MFLAGS) $@); done |
525 -(cd man && $(MAKE) $(MFLAGS) $@) | 524 $(RM) *~ \#* |
526 -rm -f *~ \#* | |
527 -${top_distclean} | 525 -${top_distclean} |
528 | 526 |
529 ### Unlocking and relocking. The idea of these productions is to reduce | 527 ## Unlocking and relocking. The idea of these productions is to reduce |
530 ### hassles when installing an incremental tar of XEmacs. Do `make unlock' | 528 ## hassles when installing an incremental tar of XEmacs. Do `make unlock' |
531 ### before unlocking the file to take the write locks off all sources so | 529 ## before unlocking the file to take the write locks off all sources so |
532 ### that tar xvof will overwrite them without fuss. Then do `make relock' | 530 ## that tar xvof will overwrite them without fuss. Then do `make relock' |
533 ### afterward so that VC mode will know which files should be checked in | 531 ## afterward so that VC mode will know which files should be checked in |
534 ### if you want to mung them. | 532 ## if you want to mung them. |
535 ### | 533 |
536 ### Note: it's no disaster if these productions miss a file or two; tar | 534 ## Note: it's no disaster if these productions miss a file or two; tar |
537 ### and VC will swiftly let you know if this happens, and it is easily | 535 ## and VC will swiftly let you know if this happens, and it is easily |
538 ### corrected. | 536 ## corrected. |
539 SOURCES = ChangeLog GETTING.GNU.SOFTWARE INSTALL Makefile.in PROBLEMS \ | 537 SOURCES = ChangeLog GETTING.GNU.SOFTWARE INSTALL Makefile.in PROBLEMS \ |
540 README build-install.in configure make-dist move-if-change | 538 README build-install.in configure make-dist move-if-change |
541 | 539 |
542 .PHONY: unlock relock TAGS tags check dist info dvi mcs | 540 .PHONY: unlock relock TAGS tags check dist info dvi mcs |
543 | 541 |
544 unlock: | 542 unlock: |
545 chmod u+w $(SOURCES) cpp/* | 543 chmod u+w $(SOURCES) cpp/* |
546 -(cd elisp && chmod u+w Makefile README *.texi) | 544 -cd elisp && chmod u+w Makefile README *.texi |
547 (cd etc && $(MAKE) $(MFLAGS) unlock) | 545 cd etc && $(MAKE) $(MFLAGS) unlock |
548 (cd lib-src && $(MAKE) $(MFLAGS) unlock) | 546 cd lib-src && $(MAKE) $(MFLAGS) unlock |
549 (cd lisp && $(MAKE) $(MFLAGS) unlock) | 547 cd lisp && $(MAKE) $(MFLAGS) unlock |
550 (cd lisp/term && chmod u+w README *.el) | 548 cd lisp/term && chmod u+w README *.el |
551 (cd man && chmod u+w *texi* ChangeLog split-man) | 549 cd man && chmod u+w *texi* ChangeLog split-man |
552 (cd lwlib && chmod u+w *.[ch] Makefile.in.in) | 550 cd lwlib && chmod u+w *.[ch] Makefile.in.in |
553 (cd src && $(MAKE) $(MFLAGS) unlock) | 551 cd src && $(MAKE) $(MFLAGS) $@ |
554 | 552 |
555 relock: | 553 relock: |
556 chmod u-w $(SOURCES) cpp/* | 554 chmod u-w $(SOURCES) cpp/* |
557 -(cd elisp && chmod u-w Makefile README *.texi) | 555 -cd elisp && chmod u-w Makefile README *.texi |
558 (cd etc && $(MAKE) $(MFLAGS) relock) | 556 cd etc && $(MAKE) $(MFLAGS) relock |
559 (cd lib-src && $(MAKE) $(MFLAGS) relock) | 557 cd lib-src && $(MAKE) $(MFLAGS) relock |
560 (cd lisp && $(MAKE) $(MFLAGS) relock) | 558 cd lisp && $(MAKE) $(MFLAGS) relock |
561 (cd lisp/term && chmod u+w README *.el) | 559 cd lisp/term && chmod u+w README *.el |
562 (cd man && chmod u+w *texi* ChangeLog split-man) | 560 cd man && chmod u+w *texi* ChangeLog split-man |
563 (cd lwlib && chmod u+w *.[ch] Makefile.in.in) | 561 cd lwlib && chmod u+w *.[ch] Makefile.in.in |
564 (cd src && $(MAKE) $(MFLAGS) relock) | 562 cd src && $(MAKE) $(MFLAGS) $@ |
565 | 563 |
566 TAGS tags: FRC.tags | 564 TAGS tags: FRC.tags |
567 @echo "If you don't have a copy of etags around, then do 'make lib-src' first." | 565 @echo "If you don't have a copy of etags around, then do 'make lib-src' first." |
568 @PATH=`pwd`/lib-src:$$PATH HOME=/-=-; export PATH HOME; \ | 566 @PATH=`$(pwd)`/lib-src:$$PATH HOME=/-=-; export PATH HOME; \ |
569 echo "Using etags from `which etags`." | 567 echo "Using etags from `which etags`." |
570 PATH=`pwd`/lib-src:$$PATH ; export PATH; cd ${srcdir} && \ | 568 PATH=`$(pwd)`/lib-src:$$PATH ; export PATH; cd ${srcdir} && \ |
571 etags --regex='/[ ]*DEF\(VAR\|INE\)_[A-Z_]+[ ]*([ ]*"\([^"]+\)"/\2/' src/*.[ch] ; \ | 569 etags --regex='/[ ]*DEF\(VAR\|INE\)_[A-Z_]+[ ]*([ ]*"\([^"]+\)"/\2/' src/*.[ch] ; \ |
572 for d in `find lisp -name SCCS -prune -o -name RCS -prune -o -type d -print` ; do \ | 570 for d in `find lisp -name SCCS -prune -o -name RCS -prune -o -type d -print` ; do \ |
573 (cd $$d && if [ "`echo *.el`" != "*.el" ] ; then etags -a -o ${srcdir}/TAGS *.el ; fi ) ; \ | 571 (cd $$d && if [ "`echo *.el`" != "*.el" ] ; then etags -a -o ${srcdir}/TAGS *.el ; fi ) ; \ |
574 done ; \ | 572 done ; \ |
575 etags -a lwlib/*.[ch] | 573 etags -a lwlib/*.[ch] |
580 dist: | 578 dist: |
581 cd ${srcdir} && make-dist | 579 cd ${srcdir} && make-dist |
582 | 580 |
583 info: FRC.info | 581 info: FRC.info |
584 cd ${srcdir}/man && $(MAKE) $(MFLAGS) $@ | 582 cd ${srcdir}/man && $(MAKE) $(MFLAGS) $@ |
583 | |
585 dvi: | 584 dvi: |
586 cd ${srcdir}/man && $(MAKE) $(MFLAGS) $@ | 585 cd ${srcdir}/man && $(MAKE) $(MFLAGS) $@ |
587 | 586 |
588 # Fix up version information in executables (Solaris-only) | 587 ## Fix up version information in executables (Solaris-only) |
589 mcs: | 588 mcs: |
590 date=`LANG=C LC_ALL=C date -u '+%e %b %Y'`; \ | 589 date=`LANG=C LC_ALL=C date -u '+%e %b %Y'`; \ |
591 ident="@(#)RELEASE VERSION XEmacs ${version} $${date}"; \ | 590 ident="@(#)RELEASE VERSION XEmacs ${version} $${date}"; \ |
592 for f in `file lib-src/* src/xemacs | grep ELF | sed -e 's/:.*//'`; do \ | 591 for f in `file lib-src/* src/xemacs | grep ELF | sed -e 's/:.*//'`; do \ |
593 mcs -da "$${ident} `echo $${f} | sed 's/.*\///'`" $${f}; \ | 592 mcs -da "$${ident} `echo $${f} | sed 's/.*\///'`" $${f}; \ |