Mercurial > emacs
comparison Makefile.in @ 89909:68c22ea6027c
Sync to HEAD
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Fri, 16 Apr 2004 12:51:06 +0000 |
parents | 375f2633d815 |
children | 4c90ffeb71c5 |
comparison
equal
deleted
inserted
replaced
89908:ee1402f7b568 | 89909:68c22ea6027c |
---|---|
1 # DIST: This is the distribution Makefile for Emacs. configure can | 1 # DIST: This is the distribution Makefile for Emacs. 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 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | 5 # Copyright (C) 1992,93,94,95,96,97,98,1999,2000,01,02,03,2004 |
6 # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. | 6 # Free Software Foundation, Inc. |
7 | 7 |
8 # This file is part of GNU Emacs. | 8 # This file is part of GNU Emacs. |
9 | 9 |
10 # GNU Emacs is free software; you can redistribute it and/or modify | 10 # GNU Emacs is free software; you can redistribute it and/or modify |
11 # it under the terms of the GNU General Public License as published by | 11 # it under the terms of the GNU General Public License as published by |
43 # distribution. | 43 # distribution. |
44 # | 44 # |
45 # make maintainer-clean | 45 # make maintainer-clean |
46 # Delete everything from the current directory that can be | 46 # Delete everything from the current directory that can be |
47 # reconstructed with this Makefile. This typically includes | 47 # reconstructed with this Makefile. This typically includes |
48 # everything deleted by distclean, plus more: C source files | 48 # everything deleted by distclean, plus more: .elc files, |
49 # produced by Bison, tags tables, info files, and so on. | 49 # C source files produced by Bison, tags tables, info files, |
50 # and so on. | |
50 # | 51 # |
51 # make extraclean | 52 # make extraclean |
52 # Still more severe - delete backup and autosave files, too. | 53 # Still more severe - delete backup and autosave files, too. |
53 | 54 |
54 SHELL = /bin/sh | 55 SHELL = /bin/sh |
56 | |
57 # This may not work with certain non-GNU make's. It only matters when | |
58 # inheriting a CDPATH not starting with the current directory. | |
59 CDPATH= | |
55 | 60 |
56 # If Make doesn't predefine MAKE, set it here. | 61 # If Make doesn't predefine MAKE, set it here. |
57 @SET_MAKE@ | 62 @SET_MAKE@ |
58 | 63 |
59 # ==================== Things `configure' Might Edit ==================== | 64 # ==================== Things `configure' Might Edit ==================== |
365 ${INSTALL_DATA} lib-src/$$f ${archlibdir}/$$f; \ | 370 ${INSTALL_DATA} lib-src/$$f ${archlibdir}/$$f; \ |
366 else true; fi ; \ | 371 else true; fi ; \ |
367 done | 372 done |
368 if test "${carbon_appdir}" != ""; then \ | 373 if test "${carbon_appdir}" != ""; then \ |
369 umask 022; mkdir -p ${carbon_appdir}/Emacs.app; \ | 374 umask 022; mkdir -p ${carbon_appdir}/Emacs.app; \ |
370 (cd mac/Emacs.app; tar -chf - . ) | \ | 375 (cd mac/Emacs.app; (tar -chf - . | \ |
371 (cd ${carbon_appdir}/Emacs.app; umask 022; tar -xvf - \ | 376 (cd ${carbon_appdir}/Emacs.app; umask 022; tar -xvf - \ |
372 && cat > /dev/null) || exit 1; \ | 377 && cat > /dev/null))) || exit 1; \ |
373 fi | 378 fi |
374 | 379 |
375 ### Install the files that are machine-independent. | 380 ### Install the files that are machine-independent. |
376 ### Most of them come straight from the distribution; | 381 ### Most of them come straight from the distribution; |
377 ### the exception is the DOC-* files, which are copied | 382 ### the exception is the DOC-* files, which are copied |
438 -chmod a+r ${datadir}/emacs/site-lisp/subdirs.el | 443 -chmod a+r ${datadir}/emacs/site-lisp/subdirs.el |
439 -unset CDPATH; \ | 444 -unset CDPATH; \ |
440 if [ `(cd ./etc; /bin/pwd)` != `(cd ${docdir}; /bin/pwd)` ]; \ | 445 if [ `(cd ./etc; /bin/pwd)` != `(cd ${docdir}; /bin/pwd)` ]; \ |
441 then \ | 446 then \ |
442 echo "Copying etc/DOC-* to ${docdir} ..." ; \ | 447 echo "Copying etc/DOC-* to ${docdir} ..." ; \ |
443 (cd ./etc; tar -chf - DOC*) \ | 448 (cd ./etc; tar -chf - DOC* compilation.txt) \ |
444 |(cd ${docdir}; umask 022; tar -xvf - && cat > /dev/null) || exit 1; \ | 449 |(cd ${docdir}; umask 022; tar -xvf - && cat > /dev/null) || exit 1; \ |
445 (cd $(docdir); chown $${LOGNAME:-$$USERNAME} DOC*; chmod a+r DOC*; \ | 450 (cd $(docdir); \ |
451 chown $${LOGNAME:-$$USERNAME} DOC* compilation.txt; \ | |
452 chmod a+r DOC* compilation.txt; \ | |
446 if test "`echo DOC-*`" != "DOC-*"; then rm DOC; fi); \ | 453 if test "`echo DOC-*`" != "DOC-*"; then rm DOC; fi); \ |
447 else true; fi | 454 else true; fi |
448 -unset CDPATH; \ | 455 -unset CDPATH; \ |
449 if [ -r ./lisp ] \ | 456 if [ -r ./lisp ] \ |
450 && [ -r ./lisp/simple.el ] \ | 457 && [ -r ./lisp/simple.el ] \ |
466 (cd $${thisdir}; \ | 473 (cd $${thisdir}; \ |
467 ${INSTALL_DATA} ${srcdir}/info/dir ${infodir}/dir; \ | 474 ${INSTALL_DATA} ${srcdir}/info/dir ${infodir}/dir; \ |
468 chmod a+r ${infodir}/dir); \ | 475 chmod a+r ${infodir}/dir); \ |
469 fi; \ | 476 fi; \ |
470 cd ${srcdir}/info ; \ | 477 cd ${srcdir}/info ; \ |
471 for f in ada-mode* autotype* calc* ccmode* cl* dired-x* ebrowse* ediff* efaq* eintr* elisp* emacs* eshell* eudc* forms* gnus* idlwave* info* message* mh-e* pcl-cvs* reftex* sc* speedbar* tramp* vip* widget* woman* smtpmail*; do \ | 478 for f in ada-mode* autotype* calc* ccmode* cl* dired-x* ebrowse* ediff* efaq* eintr* elisp* emacs* eshell* eudc* forms* gnus* idlwave* info* message* mh-e* pcl-cvs* reftex* sc* ses* speedbar* tramp* vip* widget* woman* smtpmail*; do \ |
472 (cd $${thisdir}; \ | 479 (cd $${thisdir}; \ |
473 ${INSTALL_DATA} ${srcdir}/info/$$f ${infodir}/$$f; \ | 480 ${INSTALL_DATA} ${srcdir}/info/$$f ${infodir}/$$f; \ |
474 chmod a+r ${infodir}/$$f); \ | 481 chmod a+r ${infodir}/$$f); \ |
475 done); \ | 482 done); \ |
476 else true; fi | 483 else true; fi |
477 -unset CDPATH; \ | 484 -unset CDPATH; \ |
478 thisdir=`/bin/pwd`; \ | 485 thisdir=`/bin/pwd`; \ |
479 if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ]; \ | 486 if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ]; \ |
480 then \ | 487 then \ |
481 for f in ada-mode autotype calc ccmode cl dired-x ebrowse ediff efaq elisp eintr emacs emacs-mime eshell eudc forms gnus idlwave info message mh-e pcl-cvs reftex sc speedbar tramp vip viper widget woman smtpmail; do \ | 488 for f in ada-mode autotype calc ccmode cl dired-x ebrowse ediff efaq elisp eintr emacs emacs-mime eshell eudc forms gnus idlwave info message mh-e pcl-cvs reftex sc ses speedbar tramp vip viper widget woman smtpmail; do \ |
482 (cd $${thisdir}; \ | 489 (cd $${thisdir}; \ |
483 ${INSTALL_INFO} --info-dir=${infodir} ${infodir}/$$f); \ | 490 ${INSTALL_INFO} --info-dir=${infodir} ${infodir}/$$f); \ |
484 done; \ | 491 done; \ |
485 else true; fi | 492 else true; fi |
486 -chmod -R a+r ${datadir}/emacs ${COPYDESTS} ${infodir} | 493 -chmod -R a+r ${datadir}/emacs ${COPYDESTS} ${infodir} |
542 esac ; \ | 549 esac ; \ |
543 fi ; \ | 550 fi ; \ |
544 done | 551 done |
545 (cd ${archlibdir} && rm -f fns-*) | 552 (cd ${archlibdir} && rm -f fns-*) |
546 -rm -rf ${libexecdir}/emacs/${version} | 553 -rm -rf ${libexecdir}/emacs/${version} |
547 (cd ${infodir} && rm -f cl* ada-mode* autotype* calc* ccmode* ebrowse* efaq* eintr elisp* eshell* eudc* idlwave* message* pcl-cvs* reftex* speedbar* tramp* widget* woman* dired-x* ediff* emacs* forms* gnus* info* mh-e* sc* vip* smtpmail*) | 554 (cd ${infodir} && rm -f cl* ada-mode* autotype* calc* ccmode* ebrowse* efaq* eintr elisp* eshell* eudc* idlwave* message* pcl-cvs* reftex* speedbar* tramp* widget* woman* dired-x* ediff* emacs* forms* gnus* info* mh-e* sc* ses* vip* smtpmail*) |
548 (cd ${man1dir} && rm -f emacs${manext} emacsclient${manext} etags${manext} ctags${manext}) | 555 (cd ${man1dir} && rm -f emacs${manext} emacsclient${manext} etags${manext} ctags${manext}) |
549 (cd ${bindir} && rm -f $(EMACSFULL) $(EMACS)) | 556 (cd ${bindir} && rm -f $(EMACSFULL) $(EMACS)) |
550 | 557 |
551 | 558 |
552 FRC: | 559 FRC: |
628 (cd lib-src; $(MAKE) $(MFLAGS) maintainer-clean) | 635 (cd lib-src; $(MAKE) $(MFLAGS) maintainer-clean) |
629 -(cd man && $(MAKE) $(MFLAGS) maintainer-clean) | 636 -(cd man && $(MAKE) $(MFLAGS) maintainer-clean) |
630 -(cd lispref && $(MAKE) $(MFLAGS) maintainer-clean) | 637 -(cd lispref && $(MAKE) $(MFLAGS) maintainer-clean) |
631 -(cd lispintro && $(MAKE) $(MFLAGS) maintainer-clean) | 638 -(cd lispintro && $(MAKE) $(MFLAGS) maintainer-clean) |
632 (cd leim; $(MAKE) $(MFLAGS) maintainer-clean) | 639 (cd leim; $(MAKE) $(MFLAGS) maintainer-clean) |
640 (cd lisp; $(MAKE) $(MFLAGS) maintainer-clean) | |
633 ${top_distclean} | 641 ${top_distclean} |
634 | 642 |
635 ### This doesn't actually appear in the coding standards, but Karl | 643 ### This doesn't actually appear in the coding standards, but Karl |
636 ### says GCC supports it, and that's where the configuration part of | 644 ### says GCC supports it, and that's where the configuration part of |
637 ### the coding standards seem to come from. It's like distclean, but | 645 ### the coding standards seem to come from. It's like distclean, but |
728 echo "Emacs now requires Texinfo version 4.2."; \ | 736 echo "Emacs now requires Texinfo version 4.2."; \ |
729 exit 1;\ | 737 exit 1;\ |
730 fi | 738 fi |
731 | 739 |
732 bootstrap: bootstrap-clean-before info FRC | 740 bootstrap: bootstrap-clean-before info FRC |
733 (cd lisp; $(MAKE) $(MFLAGS) bootstrap-clean) | 741 (cd lisp; $(MAKE) $(MFLAGS) bootstrap-prepare) |
734 (cd src; $(MAKE) $(MFLAGS) bootstrap) | 742 (cd src; $(MAKE) $(MFLAGS) bootstrap) |
735 (cd lisp; $(MAKE) $(MFLAGS) bootstrap EMACS=../src/bootstrap-emacs${EXEEXT}) | 743 (cd lisp; $(MAKE) $(MFLAGS) bootstrap EMACS=../src/bootstrap-emacs${EXEEXT}) |
736 (cd src; $(MAKE) $(MFLAGS) mostlyclean) | 744 (cd src; $(MAKE) $(MFLAGS) mostlyclean) |
737 $(MAKE) $(MFLAGS) all | 745 $(MAKE) $(MFLAGS) all |
738 (cd lisp; $(MAKE) $(MFLAGS) bootstrap-after) | 746 (cd lisp; $(MAKE) $(MFLAGS) bootstrap-after) |
746 -(cd man && $(MAKE) $(MFLAGS) clean) | 754 -(cd man && $(MAKE) $(MFLAGS) clean) |
747 -(cd lispref && $(MAKE) $(MFLAGS) clean) | 755 -(cd lispref && $(MAKE) $(MFLAGS) clean) |
748 -(cd lispintro && $(MAKE) $(MFLAGS) clean) | 756 -(cd lispintro && $(MAKE) $(MFLAGS) clean) |
749 (cd leim; $(MAKE) $(MFLAGS) clean) | 757 (cd leim; $(MAKE) $(MFLAGS) clean) |
750 | 758 |
759 # arch-tag: c1162ff6-e0a8-4366-bc1a-2eb544007156 |