diff doc/emacs/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 b71665f4f9ba
children 9d181264b9f9
line wrap: on
line diff
--- a/doc/emacs/Makefile.in	Sat Oct 09 10:59:55 2010 -0700
+++ b/doc/emacs/Makefile.in	Sat Oct 09 11:31:12 2010 -0700
@@ -117,13 +117,15 @@
 	${srcdir}/kmacro.texi \
 	$(EMACS_XTRA)
 
+## This seems pointless.  The info/ directory exists in both the
+## 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 = @test -d ${infodir} || mkdir ${infodir} || test -d ${infodir}
+
 .PHONY: info dvi pdf
 
 info: $(infodir)/emacs
-
-$(infodir):
-	mkdir $@ || test -d $@
-
 dvi: emacs.dvi
 pdf: emacs.pdf
 
@@ -131,7 +133,8 @@
 # There is no provision for Info files to exist in the build directory.
 # In a distribution of Emacs, the Info files should be up to date.
 
-$(infodir)/emacs: $(infodir) ${EMACSSOURCES}
+$(infodir)/emacs: ${EMACSSOURCES}
+	$(mkinfodir)
 	cd $(srcdir); $(MAKEINFO) emacs.texi -o $@
 
 emacs.dvi: ${EMACSSOURCES}