changeset 41116:be613f250f60

(infodir): Define relative to $(srcdir). ($(infodir)/elisp): Don't chdir into $(srcdir), but add it to the include directories list via -I switch to makeinfo. (index.texi): Use cp if both hard and symbolic links fail.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 16 Nov 2001 12:42:29 +0000
parents 20eb3e2945d7
children 839dcd11d609
files lispref/Makefile.in
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lispref/Makefile.in	Fri Nov 16 12:05:48 2001 +0000
+++ b/lispref/Makefile.in	Fri Nov 16 12:42:29 2001 +0000
@@ -26,7 +26,7 @@
 # Tell make where to find source files; this is needed for the makefiles.
 VPATH=@srcdir@
 
-infodir = ../info
+infodir = $(srcdir)/../info
 
 # Redefine `TEX' if `tex' does not invoke plain TeX.  For example:
 # TEX=platex
@@ -111,7 +111,7 @@
 info: $(infodir)/elisp
 
 $(infodir)/elisp: $(srcs) index.texi
-	cd $(srcdir); $(MAKEINFO) -I. elisp.texi -o $(infodir)/elisp
+	$(MAKEINFO) -I. -I$(srcdir) $(srcdir)/elisp.texi -o $(infodir)/elisp
 
 elisp.dvi: $(srcs) index.texi
 	# Avoid losing old contents of aux file entirely.
@@ -131,9 +131,9 @@
 index.texi:
 	if [ a${permuted_index} != a ]; \
 	then \
-	  ln -s $(srcdir)/index.perm index.texi || ln $(srcdir)/index.perm index.texi; \
+	  ln -s $(srcdir)/index.perm index.texi || ln $(srcdir)/index.perm index.texi || cp $(srcdir)/index.perm index.texi; \
 	else \
-	  ln -s $(srcdir)/index.unperm index.texi || ln $(srcdir)/index.unperm index.texi; \
+	  ln -s $(srcdir)/index.unperm index.texi || ln $(srcdir)/index.unperm index.texi || cp $(srcdir)/index.unperm index.texi; \
 	fi
 
 install: elisp