diff doc/lispintro/Makefile.in @ 110882:b8bcd2311f78

Avoid having a directory as a prerequisite in doc Makefiles. It does not play well with time-stamping. * doc/misc/Makefile.in ($(infodir)): Delete rule. (mkinfodir): New. Use it in all the info rules, rather than depending on infodir. * doc/lispref/Makefile.in ($(infodir)): Delete rule. (mkinfodir): New. ($(infodir)/elisp): Use $mkinfodir instead of infodir. * doc/lispintro/Makefile.in ($(infodir)): Delete rule. (mkinfodir): New. ($(infodir)/eintr): Use $mkinfodir instead of infodir. * doc/emacs/Makefile.in ($(infodir)): Delete rule. (mkinfodir): New. ($(infodir)/emacs): Use $mkinfodir instead of infodir.
author Glenn Morris <rgm@gnu.org>
date Sat, 09 Oct 2010 11:31:12 -0700
parents ca28093784c4
children 9d181264b9f9
line wrap: on
line diff
--- a/doc/lispintro/Makefile.in	Sat Oct 09 10:59:55 2010 -0700
+++ b/doc/lispintro/Makefile.in	Sat Oct 09 11:31:12 2010 -0700
@@ -34,22 +34,22 @@
 TEXI2PDF = texi2pdf
 DVIPS = dvips
 
+mkinfodir = @test -d ${infodir} || mkdir ${infodir} || test -d ${infodir}
+
 .SUFFIXES: .dvi .ps .texi
 
 .PHONY: info dvi html pdf
 
 info: ${infodir}/eintr
 
-$(infodir):
-	mkdir $@ || test -d $@
-
 dvi: emacs-lisp-intro.dvi
 html: emacs-lisp-intro.html
 pdf: emacs-lisp-intro.pdf
 
 # The file name eintr must fit within 5 characters, to allow for
 # -NN extensions to fit into DOS 8+3 limits without clashing.
-${infodir}/eintr: $(infodir) ${srcdir}/emacs-lisp-intro.texi
+${infodir}/eintr: ${srcdir}/emacs-lisp-intro.texi
+	$(mkinfodir)
 	cd $(srcdir); $(MAKEINFO) emacs-lisp-intro.texi -o $@
 
 emacs-lisp-intro.dvi: ${srcdir}/emacs-lisp-intro.texi