blob: 3dd2c4baaa072494a7c4d018d4efb7b33e131e2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Public domain. Originally written 2006, Karl Berry.
# Makefile for latexrefman.
texi2dvi = texi2dvi --batch --tidy --build-dir=$*.t2dvi
texi2pdf = texi2pdf --batch --tidy --build-dir=$*.t2pdf
#
makeinfo = makeinfo
texi2docbook = $(makeinfo) --docbook
texi2html = $(makeinfo) --html --no-split
texi2info = $(makeinfo) --no-split
texi2txt = $(makeinfo) --plaintext --no-split -o $@
texi2xml = $(makeinfo) --xml
%.pdf: %.texi
$(texi2pdf) $<
%.dvi: %.texi
$(texi2dvi) $<
%.dbk: %.texi
$(texi2docbook) -o $@ $<
%.html: %.texi
$(texi2html) $<
# kludge in fix for missing g_t prefix in toc entries in makeinfo 4.13.
perl -pi -e 's/href="#_/href="#g_t_/' $@ || rm $@
%.info: %.texi
$(texi2info) $<
%.txt: %.texi
$(texi2txt) $<
%.xml: %.texi
$(texi2xml) $<
tex_output = latex2e.dvi latex2e.pdf
makeinfo_output = latex2e.info latex2e.html latex2e.txt latex2e.xml latex2e.dbk
all: makeinfo_output tex_output
makeinfo_output: $(makeinfo_output)
tex_output: $(tex_output)
mostlyclean clean:
rm -rf latex2e.t2*
realclean distclean: clean
rm -f $(all)
dist: all
tar cvzf latex2e-help-texinfo.tgz \
ChangeLog Makefile NEWS README \
latex2e.texi ltx-help.el \
$(tex_output) $(makeinfo_output)
@ls -l latex2e-help-texinfo.tgz
|