diff lispref/Makefile.in @ 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 d4e7638721b8
children 17b8417b83a0
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