Mercurial > hg > xemacs-beta
comparison Makefile.in @ 151:59463afc5666 r20-3b2
Import from CVS: tag r20-3b2
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:37:19 +0200 |
parents | 538048ae2ab8 |
children | 43dd3413c7c7 |
comparison
equal
deleted
inserted
replaced
150:8ebb1c0f0f6f | 151:59463afc5666 |
---|---|
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. |
284 echo " Automatically generated from ${srcdir}/etc/Emacs.ad" ; \ | 284 echo " Automatically generated from ${srcdir}/etc/Emacs.ad" ; \ |
285 echo " */" ; \ | 285 echo " */" ; \ |
286 /bin/sh ${srcdir}/lib-src/ad2c ${srcdir}/etc/Emacs.ad ) > \ | 286 /bin/sh ${srcdir}/lib-src/ad2c ${srcdir}/etc/Emacs.ad ) > \ |
287 src/Emacs.ad.h | 287 src/Emacs.ad.h |
288 | 288 |
289 src: lib-src lwlib dynodump FRC.src | 289 src: @SRC_SUBDIR_DEPS@ FRC.src |
290 lib-src: FRC.lib-src | 290 lib-src: FRC.lib-src |
291 lwlib: FRC.lwlib | 291 lwlib: FRC.lwlib |
292 dynodump: FRC.dynodump | |
293 | 292 |
294 .RECURSIVE: ${SUBDIR} | 293 .RECURSIVE: ${SUBDIR} |
295 | 294 |
296 ${SUBDIR}: ${SUBDIR_MAKEFILES} src/config.h src/puresize_adjust.h FRC | 295 ${SUBDIR}: ${SUBDIR_MAKEFILES} src/config.h src/puresize_adjust.h FRC |
297 cd $@ && $(MAKE) all $(MFLAGS) \ | 296 cd $@ && $(MAKE) all $(MFLAGS) \ |
305 | 304 |
306 lib-src/Makefile: ${srcdir}/lib-src/Makefile.in.in config.status | 305 lib-src/Makefile: ${srcdir}/lib-src/Makefile.in.in config.status |
307 ./config.status | 306 ./config.status |
308 | 307 |
309 lwlib/Makefile: ${srcdir}/lwlib/Makefile.in.in config.status | 308 lwlib/Makefile: ${srcdir}/lwlib/Makefile.in.in config.status |
310 ./config.status | |
311 | |
312 dynodump/Makefile: ${srcdir}/dynodump/Makefile.in.in config.status | |
313 ./config.status | 309 ./config.status |
314 | 310 |
315 src/config.h: ${srcdir}/src/config.h.in | 311 src/config.h: ${srcdir}/src/config.h.in |
316 ./config.status | 312 ./config.status |
317 | 313 |
456 | 452 |
457 | 453 |
458 ### Some makes seem to remember that they've built something called FRC, | 454 ### Some makes seem to remember that they've built something called FRC, |
459 ### so you can only use a given FRC once per makefile. | 455 ### so you can only use a given FRC once per makefile. |
460 FRC FRC.src.paths.h FRC.src FRC.lib-src FRC.lwlib FRC.mkdir FRC.dump-elcs: | 456 FRC FRC.src.paths.h FRC.src FRC.lib-src FRC.lwlib FRC.mkdir FRC.dump-elcs: |
461 FRC.dynodump: | |
462 FRC.mostlyclean FRC.clean FRC.distclean FRC.realclean: | 457 FRC.mostlyclean FRC.clean FRC.distclean FRC.realclean: |
463 | 458 |
464 # ==================== Cleaning up and miscellanea ==================== | 459 # ==================== Cleaning up and miscellanea ==================== |
465 | 460 |
466 .PHONY: mostlyclean clean distclean realclean extraclean | 461 .PHONY: mostlyclean clean distclean realclean extraclean |
469 ### Like `clean', but may refrain from deleting a few files that people | 464 ### Like `clean', but may refrain from deleting a few files that people |
470 ### normally don't want to recompile. For example, the `mostlyclean' | 465 ### normally don't want to recompile. For example, the `mostlyclean' |
471 ### target for GCC does not delete `libgcc.a', because recompiling it | 466 ### target for GCC does not delete `libgcc.a', because recompiling it |
472 ### is rarely necessary and takes a lot of time. | 467 ### is rarely necessary and takes a lot of time. |
473 mostlyclean: FRC.mostlyclean | 468 mostlyclean: FRC.mostlyclean |
474 (cd src && $(MAKE) $(MFLAGS) mostlyclean) | 469 for d in $(MAKE_SUBDIR); do (cd $$d && $(MAKE) $(MFLAGS) $@); done |
475 (cd lib-src && $(MAKE) $(MFLAGS) mostlyclean) | 470 -(cd man && $(MAKE) $(MFLAGS) $@) |
476 (cd lwlib && $(MAKE) $(MFLAGS) mostlyclean) | |
477 (cd dynodump && $(MAKE) $(MFLAGS) mostlyclean) | |
478 -(cd man && $(MAKE) $(MFLAGS) mostlyclean) | |
479 | 471 |
480 ### `clean' | 472 ### `clean' |
481 ### Delete all files from the current directory that are normally | 473 ### Delete all files from the current directory that are normally |
482 ### created by building the program. Don't delete the files that | 474 ### created by building the program. Don't delete the files that |
483 ### record the configuration. Also preserve files that could be made | 475 ### record the configuration. Also preserve files that could be made |
484 ### by building, but normally aren't because the distribution comes | 476 ### by building, but normally aren't because the distribution comes |
485 ### with them. | 477 ### with them. |
486 ### | 478 ### |
487 ### Delete `.dvi' files here if they are not part of the distribution. | 479 ### Delete `.dvi' files here if they are not part of the distribution. |
488 clean: FRC.clean | 480 clean: FRC.clean |
489 (cd src && $(MAKE) $(MFLAGS) clean) | 481 for d in $(MAKE_SUBDIR); do (cd $$d && $(MAKE) $(MFLAGS) $@); done |
490 (cd lib-src && $(MAKE) $(MFLAGS) clean) | 482 -(cd man && $(MAKE) $(MFLAGS) $@) |
491 (cd lwlib && $(MAKE) $(MFLAGS) clean) | 483 rm -f core |
492 (cd dynodump && $(MAKE) $(MFLAGS) clean) | |
493 -(cd man && $(MAKE) $(MFLAGS) clean) | |
494 | 484 |
495 ### `distclean' | 485 ### `distclean' |
496 ### Delete all files from the current directory that are created by | 486 ### Delete all files from the current directory that are created by |
497 ### configuring or building the program. If you have unpacked the | 487 ### configuring or building the program. If you have unpacked the |
498 ### source and built the program without creating any other files, | 488 ### source and built the program without creating any other files, |
499 ### `make distclean' should leave only the files that were in the | 489 ### `make distclean' should leave only the files that were in the |
500 ### distribution. | 490 ### distribution. |
501 top_distclean=\ | 491 top_distclean=\ |
502 rm -f config.status config-tmp-* build-install Installation ; \ | 492 rm -f config.status config.log config-tmp-* build-install Installation ; \ |
503 rm -f Makefile ${SUBDIR_MAKEFILES}; \ | 493 for d in src lib-src lwlib dynodump ; do \ |
504 (cd lock && rm -f *) | 494 rm -f $$d/Makefile $$d/Makefile.in ; \ |
495 done ; \ | |
496 rm -f core .sbinit Makefile lock/* | |
505 | 497 |
506 distclean: FRC.distclean | 498 distclean: FRC.distclean |
507 -([ ! -d lock ] && mkdir lock) | 499 -for d in lock site-lisp; do test -d $$d || mkdir $$d; done |
508 -([ ! -d site-lisp ] && mkdir site-lisp) | 500 for d in $(MAKE_SUBDIR); do (cd $$d && $(MAKE) $(MFLAGS) $@); done |
509 (cd src && $(MAKE) $(MFLAGS) distclean) | 501 -(cd man && $(MAKE) $(MFLAGS) $@) |
510 (cd lib-src && $(MAKE) $(MFLAGS) distclean) | |
511 (cd lwlib && $(MAKE) $(MFLAGS) distclean) | |
512 (cd dynodump && $(MAKE) $(MFLAGS) distclean) | |
513 -(cd man && $(MAKE) $(MFLAGS) distclean) | |
514 -${top_distclean} | 502 -${top_distclean} |
515 | 503 |
516 ### `realclean' | 504 ### `realclean' |
517 ### Delete everything from the current directory that can be | 505 ### Delete everything from the current directory that can be |
518 ### reconstructed with this Makefile. This typically includes | 506 ### reconstructed with this Makefile. This typically includes |
519 ### everything deleted by distclean, plus more: C source files | 507 ### everything deleted by distclean, plus more: C source files |
520 ### produced by Bison, tags tables, info files, and so on. | 508 ### produced by Bison, tags tables, info files, and so on. |
521 ### | 509 ### |
522 ### One exception, however: `make realclean' should not delete | 510 ### One exception, however: `make realclean' should not delete |
523 ### `configure' even if `configure' can be remade using a rule in the | 511 ### `configure' even if `configure' can be remade using a rule in the |
524 ### Makefile. More generally, `make realclean' should not delete | 512 ### Makefile. More generally, `make realclean' should not delete |
525 ### anything that needs to exist in order to run `configure' and then | 513 ### anything that needs to exist in order to run `configure' and then |
526 ### begin to build the program. | 514 ### begin to build the program. |
527 realclean: FRC.realclean | 515 realclean: FRC.realclean |
528 (cd src && $(MAKE) $(MFLAGS) realclean) | 516 for d in $(MAKE_SUBDIR); do (cd $$d && $(MAKE) $(MFLAGS) $@); done |
529 (cd lib-src && $(MAKE) $(MFLAGS) realclean) | 517 -(cd man && $(MAKE) $(MFLAGS) $@) |
530 (cd lwlib && $(MAKE) $(MFLAGS) realclean) | |
531 (cd dynodump && $(MAKE) $(MFLAGS) realclean) | |
532 -(cd man && $(MAKE) $(MFLAGS) realclean) | |
533 -${top_distclean} | 518 -${top_distclean} |
534 | 519 |
535 ### This doesn't actually appear in the coding standards, but Karl | 520 ### This doesn't actually appear in the coding standards, but Karl |
536 ### says GCC supports it, and that's where the configuration part of | 521 ### says GCC supports it, and that's where the configuration part of |
537 ### the coding standards seem to come from. It's like distclean, but | 522 ### the coding standards seem to come from. It's like distclean, but |
538 ### it deletes backup and autosave files too. | 523 ### it deletes backup and autosave files too. |
539 extraclean: | 524 extraclean: |
540 (cd src && $(MAKE) $(MFLAGS) extraclean) | 525 for d in $(MAKE_SUBDIR); do (cd $$d && $(MAKE) $(MFLAGS) $@); done |
541 (cd lib-src && $(MAKE) $(MFLAGS) extraclean) | 526 -(cd man && $(MAKE) $(MFLAGS) $@) |
542 (cd lwlib && $(MAKE) $(MFLAGS) extraclean) | |
543 (cd dynodump && $(MAKE) $(MFLAGS) extraclean) | |
544 -(cd man && $(MAKE) $(MFLAGS) extraclean) | |
545 -rm -f *~ \#* | 527 -rm -f *~ \#* |
546 -${top_distclean} | 528 -${top_distclean} |
547 | 529 |
548 ### Unlocking and relocking. The idea of these productions is to reduce | 530 ### Unlocking and relocking. The idea of these productions is to reduce |
549 ### hassles when installing an incremental tar of XEmacs. Do `make unlock' | 531 ### hassles when installing an incremental tar of XEmacs. Do `make unlock' |