Mercurial > hg > xemacs-beta
comparison Makefile.in.in @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | de805c49cfc1 |
children | 41dbb7a9d5f2 |
comparison
equal
deleted
inserted
replaced
411:12e008d41344 | 412:697ef44129c6 |
---|---|
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 #define NOT_C_CODE | |
53 #include "src/config.h" | |
54 | |
55 #ifdef USE_GNU_MAKE | 52 #ifdef USE_GNU_MAKE |
56 RECURSIVE_MAKE=$(MAKE) | 53 RECURSIVE_MAKE=$(MAKE) |
57 #else | 54 #else |
58 @SET_MAKE@ | 55 @SET_MAKE@ |
59 RECURSIVE_MAKE=@RECURSIVE_MAKE@ | 56 RECURSIVE_MAKE=@RECURSIVE_MAKE@ |
61 | 58 |
62 SHELL = /bin/sh | 59 SHELL = /bin/sh |
63 LANG = C | 60 LANG = C |
64 LC_ALL = C | 61 LC_ALL = C |
65 RM = rm -f | 62 RM = rm -f |
66 MAKEPATH=./lib-src/make-path | |
67 pwd = /bin/pwd | 63 pwd = /bin/pwd |
68 TAR = tar | |
69 | 64 |
70 ## ==================== Things `configure' Might Edit ==================== | 65 ## ==================== Things `configure' Might Edit ==================== |
71 | 66 |
72 CC=@CC@ | 67 CC=@CC@ |
73 CPP=@CPP@ | 68 CPP=@CPP@ |
95 ## The default location for installation. Everything is placed in | 90 ## The default location for installation. Everything is placed in |
96 ## subdirectories of this directory. The default values for many of | 91 ## subdirectories of this directory. The default values for many of |
97 ## the variables below are expressed in terms of this one, so you may | 92 ## the variables below are expressed in terms of this one, so you may |
98 ## not need to change them. This defaults to /usr/local. | 93 ## not need to change them. This defaults to /usr/local. |
99 prefix=@prefix@ | 94 prefix=@prefix@ |
100 | |
101 ## Variable data (as per each program update) goes here | |
102 ## The default is ${PROGNAME} | |
103 inststaticdir=@inststaticdir@ | |
104 | |
105 ## Static data (constant across program updates) goes here | |
106 ## The default is ${PROGNAME}-${version} | |
107 instvardir=@instvardir@ | |
108 | 95 |
109 ## Like `prefix', but used for architecture-specific files. | 96 ## Like `prefix', but used for architecture-specific files. |
110 exec_prefix=@exec_prefix@ | 97 exec_prefix=@exec_prefix@ |
111 | 98 |
112 ## Where to install XEmacs and other binaries that people will want to | 99 ## Where to install XEmacs and other binaries that people will want to |
202 ## Where to create and expect the locking directory, where | 189 ## Where to create and expect the locking directory, where |
203 ## the XEmacs locking code keeps track of which files are | 190 ## the XEmacs locking code keeps track of which files are |
204 ## currently being edited. | 191 ## currently being edited. |
205 lockdir=@lockdir@ | 192 lockdir=@lockdir@ |
206 | 193 |
207 ## Where to put the DOC file. | |
208 docdir=@docdir@ | |
209 | |
210 ## Where to put executables to be run by XEmacs rather than | 194 ## Where to put executables to be run by XEmacs rather than |
211 ## the user. This path usually includes the XEmacs version | 195 ## the user. This path usually includes the XEmacs version |
212 ## and configuration name, so that multiple configurations | 196 ## and configuration name, so that multiple configurations |
213 ## for multiple versions of XEmacs may be installed at | 197 ## for multiple versions of XEmacs may be installed at |
214 ## once. | 198 ## once. |
227 ## because the compiled lisp files are part of the distribution | 211 ## because the compiled lisp files are part of the distribution |
228 ## and you cannot remake them without installing XEmacs first. | 212 ## and you cannot remake them without installing XEmacs first. |
229 MAKE_SUBDIR = @MAKE_SUBDIR@ | 213 MAKE_SUBDIR = @MAKE_SUBDIR@ |
230 | 214 |
231 ## Subdirectories that can be made recursively. | 215 ## Subdirectories that can be made recursively. |
232 SUBDIR = ${MAKE_SUBDIR} man | 216 SUBDIR = ${MAKE_SUBDIR} man |
233 | |
234 ## Subdirectories that must be cleaned on distclean | |
235 SUBDIR_DISTCLEAN = ${SUBDIR} modules/sample modules/ldap modules/zlib modules/base64 | |
236 | 217 |
237 ## The makefiles of the directories in ${MAKE_SUBDIR}. | 218 ## The makefiles of the directories in ${MAKE_SUBDIR}. |
238 SUBDIR_MAKEFILES = @SUBDIR_MAKEFILES@ | 219 SUBDIR_MAKEFILES = @SUBDIR_MAKEFILES@ |
239 | 220 |
240 ## Subdirectories to `make install-arch-dep' recursively | 221 ## Subdirectories to `make install-arch-dep' recursively |
259 | 240 |
260 .NO_PARALLEL: ${GENERATED_HEADERS} ${MAKE_SUBDIR} dump-elcs | 241 .NO_PARALLEL: ${GENERATED_HEADERS} ${MAKE_SUBDIR} dump-elcs |
261 .PHONY: ${SUBDIR} all beta all-elc all-elcs dump-elc dump-elcs autoloads finder | 242 .PHONY: ${SUBDIR} all beta all-elc all-elcs dump-elc dump-elcs autoloads finder |
262 | 243 |
263 ## Convenience target for XEmacs beta testers | 244 ## Convenience target for XEmacs beta testers |
264 beta: clean all-elc finder info | 245 beta: clean all-elc finder |
265 | 246 |
266 ## Convenience target for XEmacs maintainers | 247 ## Convenience target for XEmacs maintainers |
267 ## This would run `make-xemacsdist' if I were really confident that everything | 248 ## This would run `make-xemacsdist' if I were really confident that everything |
268 ## was turnkey. | 249 ## was turnkey. |
269 dist: all-elc info | 250 dist: all-elc info |
273 ## - configure from configure.in | 254 ## - configure from configure.in |
274 ## - config.values.in from configure | 255 ## - config.values.in from configure |
275 ## - src/depend from src/*.[ch] | 256 ## - src/depend from src/*.[ch] |
276 .PHONY: config configure depend | 257 .PHONY: config configure depend |
277 config: configure depend | 258 config: configure depend |
278 configure: ${srcdir}/configure ${srcdir}/lib-src/config.values.in | 259 configure: ${srcdir}/configure |
279 | 260 ${srcdir}/configure: ${srcdir}/configure.in |
280 ${srcdir}/configure : ${srcdir}/configure.in | |
281 cd ${srcdir} && autoconf | 261 cd ${srcdir} && autoconf |
282 | 262 cd ${srcdir} && /bin/sh lib-src/config.values.sh |
283 ${srcdir}/lib-src/config.values.in : ${srcdir}/configure | 263 |
284 cd ${srcdir} && $(SHELL) lib-src/config.values.sh | 264 depend ${srcdir}/src/depend: |
285 | 265 cd ${srcdir}/src && \ |
286 depend ${srcdir}/src/depend : | 266 perl ./make-src-depend > depend.tmp && \ |
287 cd ${srcdir}/src && $(RECURSIVE_MAKE) depend | 267 $(RM) depend && mv depend.tmp depend |
288 | 268 |
289 ## Build XEmacs and recompile out-of-date and missing .elc files along | 269 ## Build XEmacs and recompile out-of-date and missing .elc files along |
290 ## the way. | 270 ## the way. |
291 all-elc all-elcs: lib-src lwlib dump-elcs src | 271 all-elc all-elcs: lib-src lwlib dump-elcs src |
292 MAKE='$(MAKE)' EMACS='./src/$(PROGNAME)' $(SHELL) ${srcdir}/lib-src/update-elc.sh | 272 MAKE='$(MAKE)' EMACS='./src/$(PROGNAME)' sh ${srcdir}/lib-src/update-elc.sh |
293 | 273 |
294 ## Sub-target for all-elc. | 274 ## Sub-target for all-elc. |
295 dump-elc dump-elcs: ${GENERATED_HEADERS} FRC.dump-elcs | 275 dump-elc dump-elcs: ${GENERATED_HEADERS} FRC.dump-elcs |
296 cd ./src && $(RECURSIVE_MAKE) dump-elcs | 276 cd ./src && $(RECURSIVE_MAKE) dump-elcs |
297 | 277 |
298 autoloads: lisp/auto-autoloads.el lisp/custom-load.el | 278 autoloads: src |
299 | 279 MAKE='$(MAKE)' EMACS='./src/$(PROGNAME)' sh ${srcdir}/lib-src/update-autoloads.sh |
300 FRC.lisp.auto.autoloads.el: | 280 |
301 lisp/auto-autoloads.el: FRC.lisp.auto.autoloads.el | 281 custom-loads: |
302 $(RM) lisp/auto-autoloads.el | 282 MAKE='$(MAKE)' EMACS='./src/$(PROGNAME)' sh ${srcdir}/lib-src/update-custom.sh |
303 ${blddir}/src/${PROGNAME} -batch -vanilla \ | |
304 -l autoload -f batch-update-directory lisp | |
305 ${blddir}/src/${PROGNAME} -batch -vanilla \ | |
306 -f batch-byte-compile lisp/auto-autoloads.el | |
307 @$(RM) lisp/auto-autoloads.el~ | |
308 #ifdef MULE | |
309 $(RM) lisp/mule/auto-autoloads.el | |
310 ${blddir}/src/${PROGNAME} -batch -vanilla \ | |
311 -l autoload -f batch-update-directory lisp/mule | |
312 ${blddir}/src/${PROGNAME} -batch -vanilla \ | |
313 -f batch-byte-compile lisp/mule/auto-autoloads.el | |
314 @$(RM) lisp/mule/auto-autoloads.el~ | |
315 #endif | |
316 | |
317 FRC.lisp.custom.load.el: | |
318 lisp/custom-load.el: FRC.lisp.custom.load.el | |
319 ${blddir}/src/${PROGNAME} -batch -vanilla -l cus-dep \ | |
320 -f Custom-make-dependencies lisp | |
321 | 283 |
322 finder: src | 284 finder: src |
323 @echo "Building finder database ..." | 285 @echo "Building finder database ..." |
324 @(cd ./lisp; \ | 286 @(cd ./lisp; \ |
325 ${blddir}/src/${PROGNAME} -batch -vanilla \ | 287 ${blddir}/src/${PROGNAME} -batch -vanilla \ |
342 @echo "Producing \`src/Emacs.ad.h' from \`etc/Emacs.ad'." | 304 @echo "Producing \`src/Emacs.ad.h' from \`etc/Emacs.ad'." |
343 @$(RM) src/Emacs.ad.h | 305 @$(RM) src/Emacs.ad.h |
344 @(echo "/* Do not edit this file!" ; \ | 306 @(echo "/* Do not edit this file!" ; \ |
345 echo " Automatically generated from ${srcdir}/etc/Emacs.ad" ; \ | 307 echo " Automatically generated from ${srcdir}/etc/Emacs.ad" ; \ |
346 echo " */" ; \ | 308 echo " */" ; \ |
347 $(SHELL) ${srcdir}/lib-src/ad2c ${srcdir}/etc/Emacs.ad ) > \ | 309 /bin/sh ${srcdir}/lib-src/ad2c ${srcdir}/etc/Emacs.ad ) > \ |
348 src/Emacs.ad.h | 310 src/Emacs.ad.h |
349 | 311 |
350 src/sheap-adjust.h: | 312 src/sheap-adjust.h: |
351 @echo "Resetting \`src/sheap-adjust.h'."; \ | 313 @echo "Resetting \`src/sheap-adjust.h'."; \ |
352 (echo "/* Do not edit this file!" ; \ | 314 (echo "/* Do not edit this file!" ; \ |
429 if test "`(cd ${archlibdir} && $(pwd))`" != \ | 391 if test "`(cd ${archlibdir} && $(pwd))`" != \ |
430 "`(cd ./lib-src && $(pwd))`"; then \ | 392 "`(cd ./lib-src && $(pwd))`"; then \ |
431 if test -f ../Installation; then \ | 393 if test -f ../Installation; then \ |
432 ${INSTALL_DATA} ../Installation ${archlibdir}/Installation; \ | 394 ${INSTALL_DATA} ../Installation ${archlibdir}/Installation; \ |
433 fi; \ | 395 fi; \ |
434 ${INSTALL_DATA} lib-src/config.values ${docdir}/config.values; \ | 396 for f in DOC config.values; do \ |
435 ${INSTALL_DATA} lib-src/DOC ${docdir}/DOC; \ | 397 ${INSTALL_DATA} lib-src/$${f} ${archlibdir}/$${f}; \ |
398 done ; \ | |
436 for subdir in `find ${archlibdir} -type d ! -name RCS ! -name SCCS ! -name CVS -print` ; \ | 399 for subdir in `find ${archlibdir} -type d ! -name RCS ! -name SCCS ! -name CVS -print` ; \ |
437 do (cd $${subdir} && $(RM) -r RCS CVS SCCS \#* *~) ; done ; \ | 400 do (cd $${subdir} && $(RM) -r RCS CVS SCCS \#* *~) ; done ; \ |
438 else true; fi | 401 else true; fi |
439 #ifdef PDUMP | |
440 ${INSTALL_DATA} src/${PROGNAME}.dmp ${bindir}/${PROGNAME}-${version}-`src/${PROGNAME} -sd`.dmp | |
441 #endif | |
442 #ifdef WIN32_NATIVE | |
443 ${INSTALL_PROGRAM} src/${PROGNAME} ${bindir}/${PROGNAME} | |
444 -chmod 0755 ${bindir}/${PROGNAME} | |
445 #else | |
446 ${INSTALL_PROGRAM} src/${PROGNAME} ${bindir}/${PROGNAME}-${version} | 402 ${INSTALL_PROGRAM} src/${PROGNAME} ${bindir}/${PROGNAME}-${version} |
447 -chmod 0755 ${bindir}/${PROGNAME}-${version} | 403 -chmod 0755 ${bindir}/${PROGNAME}-${version} |
448 # ifdef CYGWIN | |
449 cd ${bindir} && $(RM) ./${PROGNAME} && ${LN_S} ${PROGNAME}-${version}.exe ./${PROGNAME} | |
450 # else | |
451 cd ${bindir} && $(RM) ./${PROGNAME} && ${LN_S} ${PROGNAME}-${version} ./${PROGNAME} | 404 cd ${bindir} && $(RM) ./${PROGNAME} && ${LN_S} ${PROGNAME}-${version} ./${PROGNAME} |
452 # endif /* CYGWIN */ | |
453 #endif /* WIN32_NATIVE */ | |
454 if test "${prefix}" != "${exec_prefix}"; then \ | 405 if test "${prefix}" != "${exec_prefix}"; then \ |
455 $(MAKEPATH) ${exec_prefix}/lib/${instvardir}; \ | |
456 for dir in \ | 406 for dir in \ |
457 lib/${inststaticdir} \ | 407 lib/${PROGNAME} \ |
458 lib/${instvardir}/etc \ | 408 lib/${PROGNAME}-${version}/etc \ |
459 lib/${instvardir}/info \ | 409 lib/${PROGNAME}-${version}/info \ |
460 lib/${instvardir}/lisp; do \ | 410 lib/${PROGNAME}-${version}/lisp; do \ |
461 if test ! -d ${exec_prefix}/$${dir}; then \ | 411 if test ! -d ${exec_prefix}/$${dir}; then \ |
462 $(LN_S) ${prefix}/$${dir} ${exec_prefix}/$${dir}; fi; \ | 412 $(LN_S) ${prefix}/$${dir} ${exec_prefix}/$${dir}; fi; \ |
463 done; \ | 413 done; \ |
464 fi | 414 fi |
465 | 415 |
480 dest=$$1 ; shift ; \ | 430 dest=$$1 ; shift ; \ |
481 test -d $${dir} \ | 431 test -d $${dir} \ |
482 -a "`(cd $${dir} && $(pwd))`" != \ | 432 -a "`(cd $${dir} && $(pwd))`" != \ |
483 "`(cd $${dest} && $(pwd))`" \ | 433 "`(cd $${dest} && $(pwd))`" \ |
484 && (echo "Copying $${dir}..." ; \ | 434 && (echo "Copying $${dir}..." ; \ |
485 (cd $${dir} && $(TAR) -cf - . ) | \ | 435 (cd $${dir} && tar -cf - . ) | \ |
486 (cd $${dest} && umask 022 && $(TAR) -xf - );\ | 436 (cd $${dest} && umask 022 && tar -xf - );\ |
487 chmod 0755 $${dest}; \ | 437 chmod 0755 $${dest}; \ |
488 for subdir in `find $${dest} -type d ! -name RCS ! -name SCCS ! -name CVS -print` ; do \ | 438 for subdir in `find $${dest} -type d ! -name RCS ! -name SCCS ! -name CVS -print` ; do \ |
489 (cd $${subdir} && $(RM) -r RCS CVS SCCS \#* *~) ; \ | 439 (cd $${subdir} && $(RM) -r RCS CVS SCCS \#* *~) ; \ |
490 done) ; \ | 440 done) ; \ |
491 done | 441 done |
497 for file in *.info* ; do \ | 447 for file in *.info* ; do \ |
498 ${INSTALL_DATA} $${file} ${infodir}/$${file} ; \ | 448 ${INSTALL_DATA} $${file} ${infodir}/$${file} ; \ |
499 chmod 0644 ${infodir}/$${file}; \ | 449 chmod 0644 ${infodir}/$${file}; \ |
500 done ; \ | 450 done ; \ |
501 fi | 451 fi |
452 ## Note it's `xemacs' not ${PROGNAME} | |
502 cd ${srcdir}/etc && \ | 453 cd ${srcdir}/etc && \ |
503 for page in xemacs etags ctags gnuserv gnuclient gnuattach gnudoit; do \ | 454 for page in xemacs etags ctags gnuserv gnuclient gnuattach gnudoit; do \ |
504 ${INSTALL_DATA} ${srcdir}/etc/$${page}.1 ${mandir}/$${page}${manext} ; \ | 455 ${INSTALL_DATA} ${srcdir}/etc/$${page}.1 ${mandir}/$${page}${manext} ; \ |
505 chmod 0644 ${mandir}/$${page}${manext} ; \ | 456 chmod 0644 ${mandir}/$${page}${manext} ; \ |
506 done | 457 done |
510 @echo ${srcdir}/lib-src/gzip-el.sh lispdir " from the command line." | 461 @echo ${srcdir}/lib-src/gzip-el.sh lispdir " from the command line." |
511 @echo "Where lispdir is where the lisp files were installed, i.e.," | 462 @echo "Where lispdir is where the lisp files were installed, i.e.," |
512 @echo "${lispdir}" | 463 @echo "${lispdir}" |
513 | 464 |
514 gzip-el: | 465 gzip-el: |
515 $(SHELL) ${srcdir}/lib-src/gzip-el.sh ${lispdir} | 466 ${srcdir}/lib-src/gzip-el.sh ${lispdir} |
516 | 467 |
468 MAKEPATH=./lib-src/make-path | |
517 ## Build all the directories to install XEmacs in. | 469 ## Build all the directories to install XEmacs in. |
518 ## Since we may be creating several layers of directories, | 470 ## Since we may be creating several layers of directories, |
519 ## (e.g. /usr/local/lib/${PROGNAME}-20.5/sparc-sun-solaris2.6), we use | 471 ## (e.g. /usr/local/lib/${PROGNAME}-20.5/sparc-sun-solaris2.6), we use |
520 ## make-path instead of mkdir. Not all mkdirs have the `-p' flag. | 472 ## make-path instead of mkdir. Not all mkdirs have the `-p' flag. |
521 mkdir: FRC.mkdir | 473 mkdir: FRC.mkdir |
522 ${MAKEPATH} ${COPYDESTS} ${lockdir} ${docdir} ${infodir} ${archlibdir} \ | 474 ${MAKEPATH} ${COPYDESTS} ${lockdir} ${infodir} ${archlibdir} \ |
523 ${mandir} ${bindir} ${datadir} ${libdir} ${pkgdir} \ | 475 ${mandir} ${bindir} ${datadir} ${libdir} ${pkgdir} \ |
524 ${sitelispdir} ${moduledir} ${sitemoduledir} | 476 ${sitelispdir} ${moduledir} ${sitemoduledir} |
525 -chmod 0777 ${lockdir} | 477 -chmod 0777 ${lockdir} |
526 | 478 |
527 ## Delete all the installed files that the `install' target would | 479 ## Delete all the installed files that the `install' target would |
589 ## distribution. | 541 ## distribution. |
590 top_distclean=\ | 542 top_distclean=\ |
591 $(RM) config.status config.log confdefs.h config-tmp-* build-install Installation ; \ | 543 $(RM) config.status config.log confdefs.h config-tmp-* build-install Installation ; \ |
592 $(RM) core .sbinit lock/* GNUmakefile Makefile Makefile.in ; \ | 544 $(RM) core .sbinit lock/* GNUmakefile Makefile Makefile.in ; \ |
593 $(RM) lisp/finder-inf.el* Installation.el Installation.elc ; \ | 545 $(RM) lisp/finder-inf.el* Installation.el Installation.elc ; \ |
594 $(RM) -r site-packages xemacs-packages mule-packages site-lisp | 546 $(RM) packages mule-packages site-lisp |
595 | 547 |
596 distclean: FRC.distclean | 548 distclean: FRC.distclean |
597 for d in $(SUBDIR_DISTCLEAN); do (cd ./$$d && $(RECURSIVE_MAKE) $@); done | 549 for d in $(SUBDIR); do (cd ./$$d && $(RECURSIVE_MAKE) $@); done |
598 -${top_distclean} | 550 -${top_distclean} |
599 | 551 |
600 ## `realclean' | 552 ## `realclean' |
601 ## Delete everything from the current directory that can be | 553 ## Delete everything from the current directory that can be |
602 ## reconstructed with this Makefile. This typically includes | 554 ## reconstructed with this Makefile. This typically includes |