# Note the other doc Makefiles do not use VPATH anymore, instead
# they set infodir to an absolute path. Not doing that here in
# case INFO_TARGETS gets too long for some feeble shells.
-# (cf src/Makefile.in's shortlisp)
+# (cf src/Makefile.in's passing of $lisp to make-docfile)
VPATH=@srcdir@
## Where the output files go.
$(ENVADD) $(TEXI2PDF) $<
ert : $(infodir)/ert
-$(infodir)/ert: ert.texi $(infodir)
- cd $(srcdir); $(MAKEINFO) ert.texi
-ert.dvi: ert.texi
- $(ENVADD) $(TEXI2DVI) ${srcdir}/ert.texi
-ert.pdf: ert.texi
- $(ENVADD) $(TEXI2PDF) ${srcdir}/ert.texi
+$(infodir)/ert: ert.texi
+ $(mkinfodir)
+ cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) $<
+ert.dvi: ${srcdir}/ert.texi
+ $(ENVADD) $(TEXI2DVI) $<
+ert.pdf: ${srcdir}/ert.texi
+ $(ENVADD) $(TEXI2PDF) $<
eshell : $(infodir)/eshell
$(infodir)/eshell: eshell.texi