diff doc/emacs/Makefile.in @ 110894:39eed86814a2

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.
author Glenn Morris <rgm@gnu.org>
date Sat, 09 Oct 2010 14:19:09 -0700
parents 485f4f9f69bd
children 6d7021474f2e
line wrap: on
line diff
--- a/doc/emacs/Makefile.in	Sat Oct 09 13:36:14 2010 -0700
+++ b/doc/emacs/Makefile.in	Sat Oct 09 14:19:09 2010 -0700
@@ -25,9 +25,6 @@
 # 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 @@
 ## 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 @@
 ## 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 @@
 
 $(infodir)/emacs: ${EMACSSOURCES}
 	$(mkinfodir)
-	cd $(srcdir); $(MAKEINFO) $< -o $@
+	$(MAKEINFO) $< -o $@
 
 emacs.dvi: ${EMACSSOURCES}
 	$(ENVADD) $(TEXI2DVI) $<
@@ -166,7 +161,7 @@
 
 ## 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