Mercurial > emacs
comparison doc/lispref/Makefile.in @ 112442:76fa839f455e
* Makefile.in (MAKEINFO): Now controlled by `configure'.
(MAKEINFO_OPTS): New variable. Use it where appropriate.
(ENVADD): New variable to control texi2dvi and texi2pdf.
author | Werner Lemberg <wl@gnu.org> |
---|---|
date | Sun, 23 Jan 2011 11:22:21 +0100 |
parents | 417b1e4d63cd |
children |
comparison
equal
deleted
inserted
replaced
112441:2097405cdc11 | 112442:76fa839f455e |
---|---|
30 # Directory with the (customized) texinfo.tex file. | 30 # Directory with the (customized) texinfo.tex file. |
31 texinfodir = $(srcdir)/../misc | 31 texinfodir = $(srcdir)/../misc |
32 # Directory with emacsver.texi. | 32 # Directory with emacsver.texi. |
33 emacsdir = $(srcdir)/../emacs | 33 emacsdir = $(srcdir)/../emacs |
34 | 34 |
35 MAKEINFO = makeinfo --force -I $(emacsdir) -I $(srcdir) | 35 MAKEINFO = @MAKEINFO@ |
36 MAKEINFO_OPTS = --force -I $(emacsdir) -I $(srcdir) | |
36 TEXI2DVI = texi2dvi | 37 TEXI2DVI = texi2dvi |
37 TEXI2PDF = texi2pdf | 38 TEXI2PDF = texi2pdf |
38 DVIPS = dvips | 39 DVIPS = dvips |
40 | |
41 ENVADD = TEXINPUTS="$(srcdir):$(texinfodir):$(TEXINPUTS)" \ | |
42 MAKEINFO="$(MAKEINFO) $(MAKEINFO_OPTS)" | |
39 | 43 |
40 # List of all the texinfo files in the manual: | 44 # List of all the texinfo files in the manual: |
41 | 45 |
42 srcs = \ | 46 srcs = \ |
43 $(srcdir)/elisp.texi \ | 47 $(srcdir)/elisp.texi \ |
104 pdf: elisp.pdf | 108 pdf: elisp.pdf |
105 ps: elisp.ps | 109 ps: elisp.ps |
106 | 110 |
107 $(infodir)/elisp: $(srcs) | 111 $(infodir)/elisp: $(srcs) |
108 $(mkinfodir) | 112 $(mkinfodir) |
109 $(MAKEINFO) -o $@ $< | 113 $(MAKEINFO) $(MAKEINFO_OPTS) -o $@ $< |
110 | 114 |
111 elisp.dvi: $(srcs) | 115 elisp.dvi: $(srcs) |
112 $(TEXI2DVI) -I $(srcdir) -I $(texinfodir) -I $(emacsdir) $< | 116 $(ENVADD) $(TEXI2DVI) $< |
113 | 117 |
114 elisp.html: $(srcs) | 118 elisp.html: $(srcs) |
115 $(MAKEINFO) --html -o $@ $< | 119 $(MAKEINFO) $(MAKEINFO_OPTS) --html -o $@ $< |
116 | 120 |
117 elisp.ps: elisp.dvi | 121 elisp.ps: elisp.dvi |
118 $(DVIPS) -o $@ $< | 122 $(DVIPS) -o $@ $< |
119 | 123 |
120 elisp.pdf: $(srcs) | 124 elisp.pdf: $(srcs) |
121 $(TEXI2PDF) -I $(srcdir) -I $(texinfodir) -I $(emacsdir) $< | 125 $(ENVADD) $(TEXI2PDF) $< |
122 | 126 |
123 .PHONY: mostlyclean clean distclean maintainer-clean infoclean | 127 .PHONY: mostlyclean clean distclean maintainer-clean infoclean |
124 | 128 |
125 ## [12] stuff is from two-volume.make. | 129 ## [12] stuff is from two-volume.make. |
126 mostlyclean: | 130 mostlyclean: |