comparison Makefile.in @ 58022:4f686c82cfc9

(bootstrap, bootstrap-clean-before): Remove .elc files before building. (bootfast, bootstrap-clean-before-fast): New targets, like bootstrap but don't remove .elc files.
author Kim F. Storm <storm@cua.dk>
date Sun, 07 Nov 2004 23:27:18 +0000
parents 55fd4f77387a
children 238fa05221c4
comparison
equal deleted inserted replaced
58021:00a16007989d 58022:4f686c82cfc9
724 ### lisp subdirectory, removing all compiled Lisp files. Then a 724 ### lisp subdirectory, removing all compiled Lisp files. Then a
725 ### special emacs executable is built from Lisp sources, which is then 725 ### special emacs executable is built from Lisp sources, which is then
726 ### used to compile Lisp files. The last step is a "normal" make. 726 ### used to compile Lisp files. The last step is a "normal" make.
727 727
728 .PHONY: bootstrap 728 .PHONY: bootstrap
729 .PHONY: bootstrap-build
730 .PHONY: bootfast
729 .PHONY: maybe_bootstrap 731 .PHONY: maybe_bootstrap
730 732
731 maybe_bootstrap: 733 maybe_bootstrap:
732 @bar="`echo $(srcdir)/lisp/*.elc`"; \ 734 @bar="`echo $(srcdir)/lisp/*.elc`"; \
733 if [ \( "$$bar" = '$(srcdir)/lisp/*.elc' \) -o \( "$$bar" = '' \) ]; then \ 735 if [ \( "$$bar" = '$(srcdir)/lisp/*.elc' \) -o \( "$$bar" = '' \) ]; then \
735 echo "You need to do \`make bootstrap' to build Emacs."; \ 737 echo "You need to do \`make bootstrap' to build Emacs."; \
736 echo "Emacs now requires Texinfo version 4.2."; \ 738 echo "Emacs now requires Texinfo version 4.2."; \
737 exit 1;\ 739 exit 1;\
738 fi 740 fi
739 741
740 bootstrap: bootstrap-clean-before info FRC 742 bootstrap: bootstrap-clean-before info bootstrap-build FRC
743
744 bootfast: bootstrap-clean-before-fast info bootstrap-build FRC
745
746 bootstrap-build: FRC
741 (cd lisp; $(MAKE) $(MFLAGS) bootstrap-prepare) 747 (cd lisp; $(MAKE) $(MFLAGS) bootstrap-prepare)
742 (cd src; $(MAKE) $(MFLAGS) bootstrap) 748 (cd src; $(MAKE) $(MFLAGS) bootstrap)
743 (cd lisp; $(MAKE) $(MFLAGS) bootstrap EMACS=../src/bootstrap-emacs${EXEEXT}) 749 (cd lisp; $(MAKE) $(MFLAGS) bootstrap EMACS=../src/bootstrap-emacs${EXEEXT})
744 (cd src; $(MAKE) $(MFLAGS) mostlyclean) 750 (cd src; $(MAKE) $(MFLAGS) mostlyclean)
745 $(MAKE) $(MFLAGS) all 751 $(MAKE) $(MFLAGS) all
746 (cd lisp; $(MAKE) $(MFLAGS) bootstrap-after) 752 (cd lisp; $(MAKE) $(MFLAGS) bootstrap-after)
747 753
748 ### Used for `bootstrap' to avoid deleting existing dumped Emacs executables. 754 ### Used for `bootstrap' to avoid deleting existing dumped Emacs executables.
749 bootstrap-clean-before: FRC 755 bootstrap-clean-before: bootstrap-clean-before-fast FRC
756 (cd lisp; $(MAKE) $(MFLAGS) bootstrap-clean)
757
758 ### Used for `bootstrap' to avoid deleting existing dumped Emacs executables.
759 bootstrap-clean-before-fast: FRC
750 (cd src; $(MAKE) $(MFLAGS) mostlyclean) 760 (cd src; $(MAKE) $(MFLAGS) mostlyclean)
751 (cd oldXMenu; $(MAKE) $(MFLAGS) clean) 761 (cd oldXMenu; $(MAKE) $(MFLAGS) clean)
752 (cd lwlib; $(MAKE) $(MFLAGS) clean) 762 (cd lwlib; $(MAKE) $(MFLAGS) clean)
753 (cd lib-src; $(MAKE) $(MFLAGS) clean) 763 (cd lib-src; $(MAKE) $(MFLAGS) clean)
754 -(cd man && $(MAKE) $(MFLAGS) clean) 764 -(cd man && $(MAKE) $(MFLAGS) clean)