comparison Makefile.in @ 274:ca9a9ec9c1c1 r21-0b35

Import from CVS: tag r21-0b35
author cvs
date Mon, 13 Aug 2007 10:29:42 +0200
parents c5d627a313b1
children 6330739388db
comparison
equal deleted inserted replaced
273:411aac7253ef 274:ca9a9ec9c1c1
115 ## past, this defaulted to a subdirectory of ${prefix}/lib/xemacs, but 115 ## past, this defaulted to a subdirectory of ${prefix}/lib/xemacs, but
116 ## since there are now many packages documented with the texinfo 116 ## since there are now many packages documented with the texinfo
117 ## system, it is inappropriate to imply that it is part of XEmacs. 117 ## system, it is inappropriate to imply that it is part of XEmacs.
118 infodir=@infodir@ 118 infodir=@infodir@
119 119
120 ## This is set to 'yes' if the user specified the --infodir flag at
121 ## configuration time.
122 infodir_user_defined=@infodir_user_defined@
123
124 ## Document me. 120 ## Document me.
125 ## See callproc.c for code which references this. 121 ## See callproc.c for code which references this.
126 infopath=@infopath@ 122 infopath=@infopath@
127 infopath_user_defined=@infopath_user_defined@
128 123
129 ## Where to find the source code. The source code for XEmacs's C kernel is 124 ## Where to find the source code. The source code for XEmacs's C kernel is
130 ## expected to be in ${srcdir}/src, and the source code for XEmacs's 125 ## expected to be in ${srcdir}/src, and the source code for XEmacs's
131 ## utility programs is expected to be in ${srcdir}/lib-src. This is 126 ## utility programs is expected to be in ${srcdir}/lib-src. This is
132 ## set by the configure script's `--srcdir' option. 127 ## set by the configure script's `--srcdir' option.
145 ## Where to install the lisp files distributed with 140 ## Where to install the lisp files distributed with
146 ## XEmacs. This includes the XEmacs version, so that the 141 ## XEmacs. This includes the XEmacs version, so that the
147 ## lisp files for different versions of XEmacs will install 142 ## lisp files for different versions of XEmacs will install
148 ## themselves in separate directories. 143 ## themselves in separate directories.
149 lispdir=@lispdir@ 144 lispdir=@lispdir@
150
151 ## This is set to 'yes' if the user specified the --lispdir or
152 ## --datadir flag at configuration time.
153 lispdir_user_defined=@lispdir_user_defined@
154
155 ## Where packages are found.
156 package_path=@package_path@
157
158 ## This is set to 'yes' if the user specified the --package_path
159 ## at configuration time.
160 package_path_user_defined=@package_path_user_defined@
161
162 145
163 ## Directory XEmacs should search for lisp files specific 146 ## Directory XEmacs should search for lisp files specific
164 ## to this site (i.e. customizations), before consulting 147 ## to this site (i.e. customizations), before consulting
165 ## ${lispdir}. 148 ## ${lispdir}.
166 sitelispdir=@sitelispdir@ 149 sitelispdir=@sitelispdir@
181 ## usually contains the XEmacs version number, so the data 164 ## usually contains the XEmacs version number, so the data
182 ## files for multiple versions of XEmacs may be installed 165 ## files for multiple versions of XEmacs may be installed
183 ## at once. 166 ## at once.
184 etcdir=@etcdir@ 167 etcdir=@etcdir@
185 168
186 ## This is set to 'yes' if the user specified the --etcdir or
187 ## --datadir flag at configuration time.
188 etcdir_user_defined=@etcdir_user_defined@
189
190 ## Where to create and expect the locking directory, where 169 ## Where to create and expect the locking directory, where
191 ## the XEmacs locking code keeps track of which files are 170 ## the XEmacs locking code keeps track of which files are
192 ## currently being edited. 171 ## currently being edited.
193 lockdir=@lockdir@ 172 lockdir=@lockdir@
194
195 ## This is set to 'yes' if the user specified the --lockdir or
196 ## --statedir flag at configuration time.
197 lockdir_user_defined=@lockdir_user_defined@
198 173
199 ## Where to put executables to be run by XEmacs rather than 174 ## Where to put executables to be run by XEmacs rather than
200 ## the user. This path usually includes the XEmacs version 175 ## the user. This path usually includes the XEmacs version
201 ## and configuration name, so that multiple configurations 176 ## and configuration name, so that multiple configurations
202 ## for multiple versions of XEmacs may be installed at 177 ## for multiple versions of XEmacs may be installed at
203 ## once. 178 ## once.
204 archlibdir=@archlibdir@ 179 archlibdir=@archlibdir@
205
206 ## This is set to 'yes' if the user specified any of --exec-prefix,
207 ## --libdir or --archlibdir at configuration time.
208 archlibdir_user_defined=@archlibdir_user_defined@
209 180
210 ## ==================== Utility Programs for the Build ==================== 181 ## ==================== Utility Programs for the Build ====================
211 182
212 ## Allow the user to specify the install program. 183 ## Allow the user to specify the install program.
213 INSTALL = @INSTALL@ 184 INSTALL = @INSTALL@
257 ## This would run `make-xemacsdist' if I were really confident that everything 228 ## This would run `make-xemacsdist' if I were really confident that everything
258 ## was turnkey. 229 ## was turnkey.
259 dist: all-elc info 230 dist: all-elc info
260 231
261 ## Convenience target for XEmacs maintainers 232 ## Convenience target for XEmacs maintainers
262 ## Updates configure from configure.in and updates config.values.in 233 ## Updates some rarely generated files:
263 configure: configure.in 234 ## - configure from configure.in
264 autoconf 235 ## - config.values.in from configure
265 /bin/sh lib-src/config.values.sh 236 ## - src/depend from src/*.[ch]
237 .PHONY: config configure depend
238 config: configure depend
239 configure: ${srcdir}/configure
240 ${srcdir}/configure: ${srcdir}/configure.in
241 cd ${srcdir} && autoconf
242 cd ${srcdir} && /bin/sh lib-src/config.values.sh
243
244 depend ${srcdir}/src/depend:
245 cd ${srcdir}/src && \
246 perl ./make-src-depend > depend.tmp && \
247 $(RM) depend && mv depend.tmp depend
266 248
267 ## Build XEmacs and recompile out-of-date and missing .elc files along 249 ## Build XEmacs and recompile out-of-date and missing .elc files along
268 ## the way. 250 ## the way.
269 all-elc all-elcs: lib-src lwlib dump-elcs src 251 all-elc all-elcs: lib-src lwlib dump-elcs src
270 MAKE='$(MAKE)' sh ${srcdir}/lib-src/update-elc.sh 252 MAKE='$(MAKE)' sh ${srcdir}/lib-src/update-elc.sh
292 @(cd lisp; \ 274 @(cd lisp; \
293 ${blddir}/src/xemacs -batch -vanilla \ 275 ${blddir}/src/xemacs -batch -vanilla \
294 -eval '(setq finder-compile-keywords-quiet t)' \ 276 -eval '(setq finder-compile-keywords-quiet t)' \
295 -l finder -f finder-compile-keywords ) 277 -l finder -f finder-compile-keywords )
296 @echo "Building finder database ...(done)" 278 @echo "Building finder database ...(done)"
297
298 ## We force the rebuilding of src/paths.h because the user might give
299 ## different values for the various directories. Since we use
300 ## move-if-change, src/paths.h only actually changes if the user did
301 ## something notable, so the only unnecessary work we do is in building
302 ## src/paths.h.tmp, which isn't much. Note that sed is not in /bin on
303 ## 386bsd.
304 src/paths.h: Makefile ${srcdir}/src/paths.h.in FRC.src.paths.h
305 @echo "Producing \`src/paths.h' from \`src/paths.h.in'."
306 @$(RM) src/paths.h.tmp
307 @cp ${srcdir}/src/paths.h.in src/paths.h.tmp
308 @-chmod 0644 src/paths.h.tmp
309 @(echo '#define PATH_PREFIX "${prefix}"'; \
310 if test "${lispdir_user_defined}" = "yes"; \
311 then echo '#define PATH_LOADSEARCH "${lispdir}"'; \
312 else echo '/* #define PATH_LOADSEARCH "${lispdir}" */'; \
313 fi; \
314 if test "${package_path_user_defined}" = "yes"; \
315 then echo '#define PATH_PACKAGEPATH "${package_path}"'; \
316 else echo '/* #define PATH_PACKAGEPATH "${package_path}" */'; \
317 fi; \
318 if test "${sitelispdir_user_defined}" = "yes"; \
319 then echo '#define PATH_SITE "${sitelispdir}"'; \
320 else echo '/* #define PATH_SITE "${sitelispdir}" */'; \
321 fi; \
322 if test "${archlibdir_user_defined}" = "yes"; \
323 then echo '#define PATH_EXEC "${archlibdir}"'; \
324 else echo '/* #define PATH_EXEC "${archlibdir}" */'; \
325 fi; \
326 if test "${etcdir_user_defined}" = "yes"; \
327 then echo '#define PATH_DATA "${etcdir}"'; \
328 else echo '/* #define PATH_DATA "${etcdir}" */'; \
329 fi; \
330 if test "${lockdir_user_defined}" = "yes"; \
331 then echo '#define PATH_LOCK "${lockdir}"'; \
332 else echo '/* #define PATH_LOCK "${lockdir}" */'; \
333 fi; \
334 if test "${infodir_user_defined}" = "yes"; \
335 then echo '#define PATH_INFO "${infodir}"'; \
336 else echo '/* #define PATH_INFO "${infodir}" */'; \
337 fi; \
338 echo '#define PATH_INFOPATH "${infopath}"'; \
339 ) >> src/paths.h.tmp; \
340 sh ${srcdir}/move-if-change src/paths.h.tmp src/paths.h
341 279
342 ## We have to force the building of Emacs.ad.h as well in order to get it 280 ## We have to force the building of Emacs.ad.h as well in order to get it
343 ## updated correctly when VPATH is being used. Since we use move-if-change, 281 ## updated correctly when VPATH is being used. Since we use move-if-change,
344 ## it will only actually change if the user modified ${etcdir}/Emacs.ad. 282 ## it will only actually change if the user modified ${etcdir}/Emacs.ad.
345 src/Emacs.ad.h: ${srcdir}/etc/Emacs.ad 283 src/Emacs.ad.h: ${srcdir}/etc/Emacs.ad
388 326
389 pkg-src/tree-x/Makefile: ${srcdir}/pkg-src/tree-x/Makefile.in.in config.status 327 pkg-src/tree-x/Makefile: ${srcdir}/pkg-src/tree-x/Makefile.in.in config.status
390 ./config.status 328 ./config.status
391 329
392 src/config.h: ${srcdir}/src/config.h.in 330 src/config.h: ${srcdir}/src/config.h.in
331 ./config.status && touch $@
332
333 src/paths.h: ${srcdir}/src/paths.h.in.in
393 ./config.status && touch $@ 334 ./config.status && touch $@
394 335
395 lwlib/config.h: ${srcdir}/lwlib/config.h.in 336 lwlib/config.h: ${srcdir}/lwlib/config.h.in
396 ./config.status && touch $@ 337 ./config.status && touch $@
397 338