From: Glenn Morris Date: Sat, 9 Oct 2010 21:19:09 +0000 (-0700) Subject: Replace use of VPATH in most doc/ Makefiles. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~46^2~87 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c1dc72b39599aa57137911b0fce7c700b6481e07;p=emacs.git Replace use of VPATH in most doc/ Makefiles. * doc/lispref/Makefile.in (VPATH): Remove. (infodir): Make it absolute. (mkinfodir, $(infodir)/elisp, infoclean): No need to cd $srcdir. * doc/lispintro/Makefile.in (VPATH): Remove. (infodir): Make it absolute. (mkinfodir, $(infodir)/eintr, infoclean): No need to cd $srcdir. * doc/emacs/Makefile.in (VPATH): Remove. (infodir): Make it absolute. (mkinfodir, $(infodir)/emacs, infoclean): No need to cd $srcdir. * doc/misc/Makefile.in: Comment. --- diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index 6dc2ac11ed6..079ff94eb59 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog @@ -1,5 +1,9 @@ 2010-10-09 Glenn Morris + * Makefile.in (VPATH): Remove. + (infodir): Make it absolute. + (mkinfodir, $(infodir)/emacs, infoclean): No need to cd $srcdir. + * Makefile.in (dist): Anchor regexps. * Makefile.in (EMACSSOURCES): Put emacs.texi first. diff --git a/doc/emacs/Makefile.in b/doc/emacs/Makefile.in index 61c8763aad8..d550a10b66a 100644 --- a/doc/emacs/Makefile.in +++ b/doc/emacs/Makefile.in @@ -25,9 +25,6 @@ SHELL = /bin/sh # of the source tree. This is set by configure's `--srcdir' option. srcdir=@srcdir@ -# Tell make where to find source files; this is needed for the makefiles. -VPATH=@srcdir@ - # Only for make dist. version=@version@ @@ -35,10 +32,8 @@ version=@version@ ## Note that the setfilename command in the .texi files assumes this. ## This is a bit funny. Because the info files are in the ## distribution tarfiles, they are always made in $scrdir/../../info, -## even for out-of-tree builds. So infodir is really relative to srcdir. -## The use of VPATH makes it work out, but why not set -## infodir = $(srcdir)/../../info and make it explicit? -infodir=../../info +## even for out-of-tree builds. +infodir = $(srcdir)/../../info # Directory with the (customized) texinfo.tex file. texinfodir = $(srcdir)/../misc @@ -121,7 +116,7 @@ EMACSSOURCES= \ ## repository and the release tarfiles. We do not use any ## equivalent of mkdir -p/mkinstalldirs, so this is not a general ## solution anyway. The second test -d is for parallel builds. -mkinfodir = @cd ${srcdir}; test -d ${infodir} || mkdir ${infodir} || test -d ${infodir} +mkinfodir = @test -d ${infodir} || mkdir ${infodir} || test -d ${infodir} .PHONY: info dvi pdf @@ -135,7 +130,7 @@ pdf: emacs.pdf $(infodir)/emacs: ${EMACSSOURCES} $(mkinfodir) - cd $(srcdir); $(MAKEINFO) $< -o $@ + $(MAKEINFO) $< -o $@ emacs.dvi: ${EMACSSOURCES} $(ENVADD) $(TEXI2DVI) $< @@ -166,7 +161,7 @@ distclean: clean ## In the standalone tarfile, the clean rule runs this. infoclean: - -cd $(srcdir) && cd $(infodir) && rm -f emacs emacs-[1-9] emacs-[1-9][0-9] + -cd $(infodir) && rm -f emacs emacs-[1-9] emacs-[1-9][0-9] maintainer-clean: distclean infoclean diff --git a/doc/lispintro/ChangeLog b/doc/lispintro/ChangeLog index bfeb61dd0d0..b3ae80095ae 100644 --- a/doc/lispintro/ChangeLog +++ b/doc/lispintro/ChangeLog @@ -1,5 +1,9 @@ 2010-10-09 Glenn Morris + * Makefile.in (VPATH): Remove. + (infodir): Make it absolute. + (mkinfodir, $(infodir)/eintr, infoclean): No need to cd $srcdir. + * Makefile.in (dist): Anchor regexps. * Makefile.in (${infodir}/eintr, emacs-lisp-intro.dvi) diff --git a/doc/lispintro/Makefile.in b/doc/lispintro/Makefile.in index c30bf557eed..622b1236bca 100644 --- a/doc/lispintro/Makefile.in +++ b/doc/lispintro/Makefile.in @@ -22,10 +22,9 @@ SHELL = /bin/sh srcdir = @srcdir@ -VPATH = @srcdir@ version=@version@ -infodir = ../../info +infodir = $(srcdir)/../../info # Directory with the (customized) texinfo.tex file. texinfodir = $(srcdir)/../misc @@ -34,7 +33,7 @@ TEXI2DVI = texi2dvi TEXI2PDF = texi2pdf DVIPS = dvips -mkinfodir = @cd ${srcdir}; test -d ${infodir} || mkdir ${infodir} || test -d ${infodir} +mkinfodir = @test -d ${infodir} || mkdir ${infodir} || test -d ${infodir} .SUFFIXES: .dvi .ps .texi @@ -50,7 +49,7 @@ pdf: emacs-lisp-intro.pdf # -NN extensions to fit into DOS 8+3 limits without clashing. ${infodir}/eintr: ${srcdir}/emacs-lisp-intro.texi $(mkinfodir) - cd $(srcdir); $(MAKEINFO) $< -o $@ + $(MAKEINFO) $< -o $@ emacs-lisp-intro.dvi: ${srcdir}/emacs-lisp-intro.texi $(TEXI2DVI) -I $(srcdir) -I $(texinfodir) $< @@ -78,7 +77,7 @@ clean: mostlyclean distclean: clean infoclean: - -cd $(srcdir) && cd $(infodir) && rm -f eintr eintr-[1-9] + -cd $(infodir) && rm -f eintr eintr-[1-9] maintainer-clean: distclean infoclean diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 28b7b0b3181..512e71313d2 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog @@ -1,5 +1,9 @@ 2010-10-09 Glenn Morris + * Makefile.in (VPATH): Remove. + (infodir): Make it absolute. + (mkinfodir, $(infodir)/elisp, infoclean): No need to cd $srcdir. + * Makefile.in (dist): Anchor regexps. * Makefile.in (srcs): Put elisp.texi first. diff --git a/doc/lispref/Makefile.in b/doc/lispref/Makefile.in index 9e12d9d188e..d79bec5e4a2 100644 --- a/doc/lispref/Makefile.in +++ b/doc/lispref/Makefile.in @@ -24,12 +24,9 @@ SHELL = /bin/sh # Standard configure variables. srcdir = @srcdir@ -# Tell make where to find source files; this is needed for the makefiles. -VPATH=@srcdir@ - version=@version@ -infodir = ../../info +infodir = $(srcdir)/../../info # Directory with the (customized) texinfo.tex file. texinfodir = $(srcdir)/../misc # Directory with emacsver.texi. @@ -96,7 +93,7 @@ srcs = \ $(srcdir)/gpl.texi \ $(srcdir)/doclicense.texi -mkinfodir = @cd ${srcdir}; test -d ${infodir} || mkdir ${infodir} || test -d ${infodir} +mkinfodir = @test -d ${infodir} || mkdir ${infodir} || test -d ${infodir} .PHONY: info dvi pdf @@ -107,7 +104,7 @@ pdf: elisp.pdf $(infodir)/elisp: $(srcs) $(mkinfodir) - cd $(srcdir); $(MAKEINFO) -I. -I$(texinfodir) $< -o $@ + $(MAKEINFO) -I. -I$(texinfodir) $< -o $@ elisp.dvi: $(srcs) $(TEXI2DVI) -I $(srcdir) -I $(texinfodir) $< @@ -130,7 +127,7 @@ clean: mostlyclean distclean: clean infoclean: - -cd $(srcdir) && cd $(infodir) && rm -f elisp elisp-[1-9] elisp-[1-9][0-9] + -cd $(infodir) && rm -f elisp elisp-[1-9] elisp-[1-9][0-9] maintainer-clean: distclean infoclean diff --git a/doc/misc/Makefile.in b/doc/misc/Makefile.in index 023831b9366..96ae65e81c1 100644 --- a/doc/misc/Makefile.in +++ b/doc/misc/Makefile.in @@ -27,6 +27,10 @@ SHELL = /bin/sh srcdir=@srcdir@ # Tell make where to find source files; this is needed for the makefiles. +# Note the other doc Makefiles do not use VPATH anymore, instead +# they set infodir to an absolute path. Not doing that here in +# case INFO_TARGETS gets too long for some feeble shells. +# (cf src/Makefile.in's shortlisp) VPATH=@srcdir@ ## Where the output files go.