Mercurial > emacs
diff doc/lispref/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 | 4b97fee97310 |
children | 9d181264b9f9 |
line wrap: on
line diff
--- a/doc/lispref/Makefile.in Sat Oct 09 10:59:55 2010 -0700 +++ b/doc/lispref/Makefile.in Sat Oct 09 11:31:12 2010 -0700 @@ -96,6 +96,8 @@ $(srcdir)/gpl.texi \ $(srcdir)/doclicense.texi +mkinfodir = @test -d ${infodir} || mkdir ${infodir} || test -d ${infodir} + .PHONY: info dvi pdf # The info file is named `elisp'. @@ -103,10 +105,8 @@ dvi: elisp.dvi pdf: elisp.pdf -$(infodir): - mkdir $@ || test -d $@ - -$(infodir)/elisp: $(infodir) $(srcs) +$(infodir)/elisp: $(srcs) + $(mkinfodir) cd $(srcdir); $(MAKEINFO) -I. -I$(texinfodir) elisp.texi -o $@ elisp.dvi: $(srcs)