diff doc/lispref/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/lispref/Makefile.in	Sat Oct 09 13:36:14 2010 -0700
+++ b/doc/lispref/Makefile.in	Sat Oct 09 14:19:09 2010 -0700
@@ -24,12 +24,9 @@
 # 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 @@
   $(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 @@
 
 $(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 @@
 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