Mercurial > emacs
diff doc/lispref/Makefile.in @ 110750:cad6890bb825
Minor doc Makefile.in clean-up.
* doc/emacs/Makefile.in (SHELL): Set it.
(INFO_TARGETS, DVI_TARGETS): Remove variables.
(info, dvi): Replace above variables with their expansions.
(info): Move mkdir from here...
($(infodir)/emacs): ... to here (for parallel builds).
(pdf): New target.
($(infodir)/emacs): Pass -o option to makeinfo.
(.PHONY): Declare clean rules.
(maintainer-clean): Delete dvi and pdf files.
Guard against cd failures. Use a more restrictive delete.
* doc/lispref/Makefile.in (dvi, pdf, $(infodir)): New targets.
($(infodir)/elisp): Ensure target directory exists. Use $@.
(clean): No 'make.out' or 'core' files.
(.PHONY): Declare clean rules.
(maintainer-clean): Delete pdf file. Guard against cd failures.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Sun, 03 Oct 2010 17:49:20 -0700 |
parents | 1d1d5d9bd884 |
children | 40088e2a2aba |
line wrap: on
line diff
--- a/doc/lispref/Makefile.in Sun Oct 03 17:43:11 2010 -0700 +++ b/doc/lispref/Makefile.in Sun Oct 03 17:49:20 2010 -0700 @@ -92,14 +92,17 @@ $(srcdir)/gpl.texi \ $(srcdir)/doclicense.texi - -.PHONY: clean - # The info file is named `elisp'. info: $(infodir)/elisp +dvi: elisp.dvi +pdf: elisp.pdf -$(infodir)/elisp: $(srcs) - cd $(srcdir); $(MAKEINFO) -I. -I$(infodir) elisp.texi -o $(infodir)/elisp +$(infodir): + mkdir $@ + +## FIXME ? -I$infodir is that right, or should it be texinfodir? +$(infodir)/elisp: $(infodir) $(srcs) + cd $(srcdir); $(MAKEINFO) -I. -I$(infodir) elisp.texi -o $@ elisp.dvi: $(srcs) $(TEXI2DVI) -I $(srcdir) -I $(texinfodir) $(srcdir)/elisp.texi @@ -107,13 +110,16 @@ elisp.pdf: $(srcs) $(TEXI2PDF) -I $(srcdir) -I $(texinfodir) $(srcdir)/elisp.texi +.PHONY: clean distclean maintainer-clean + clean: rm -f *.toc *.aux *.log *.cp *.cps *.fn *.fns *.tp *.tps \ *.vr *.vrs *.pg *.pgs *.ky *.kys elisp[12]* - rm -f make.out core distclean: clean maintainer-clean: clean - rm -f elisp.dvi elisp.oaux - cd $(infodir); rm -f elisp elisp-[1-9] elisp-[1-9][0-9] + rm -f elisp.dvi elisp.pdf elisp.oaux + -cd $(infodir) && rm -f elisp elisp-[1-9] elisp-[1-9][0-9] + +### Makefile ends here