8
|
1 # Makefile for TM manual
|
|
2
|
|
3 # This file is part of XEmacs.
|
|
4
|
|
5 # XEmacs is free software; you can redistribute it and/or modify it
|
|
6 # under the terms of the GNU General Public License as published by the
|
|
7 # Free Software Foundation; either version 2, or (at your option) any
|
|
8 # later version.
|
|
9
|
|
10 # XEmacs is distributed in the hope that it will be useful, but WITHOUT
|
|
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
13 # for more details.
|
|
14
|
|
15 # You should have received a copy of the GNU General Public License
|
|
16 # along with XEmacs; see the file COPYING. If not, write to
|
|
17 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
18 # Boston, MA 02111-1307, USA.
|
|
19
|
78
|
20 # The japanese texinfo files requires the very latest 20.0 xemacs
|
193
|
21 EMACS = ../../src/xemacs
|
74
|
22 NAMES = tm tm-edit tm-view gnus-mime tm-mh-e
|
78
|
23 NAMES_EN = $(NAMES:%=%-en) tm-vm-en
|
74
|
24 NAMES_JA = $(NAMES:%=%-ja)
|
|
25 NAMES_ALL = $(NAMES_EN) $(NAMES_JA)
|
78
|
26 #NAMES_ALL = $(NAMES_EN)
|
74
|
27 INFOS = $(NAMES_ALL:%=../../info/%.info)
|
78
|
28 DVIS = $(NAMES_EN:%=%.dvi)
|
8
|
29
|
|
30 TEXI2DVI = texi2dvi
|
193
|
31 MAKEINFO = makeinfo
|
8
|
32
|
|
33 # List of all the texinfo files in the manual:
|
|
34
|
|
35 all : info
|
|
36 info : $(INFOS)
|
|
37
|
78
|
38 ../../info/%-en.info : %-en.texi
|
175
|
39 $(MAKEINFO) -o $@ $<
|
12
|
40
|
78
|
41 ../../info/%-ja.info : %-ja.texi
|
175
|
42 $(EMACS) -batch -q -no-site-file $< \
|
|
43 -eval '(unless (featurep (quote mule)) (kill-emacs 0))' \
|
|
44 -eval '(cd "../../info")' \
|
|
45 -l texinfmt -f texinfo-format-buffer \
|
|
46 -eval '(setq file-coding-system (quote iso-2022-7))' \
|
|
47 -eval '(save-buffer 0)'
|
78
|
48
|
8
|
49 dvi: $(DVIS)
|
|
50 .texi.dvi :
|
|
51 $(TEXI2DVI) $<
|
|
52
|
173
|
53 .PHONY: mostlyclean clean distclean realclean extraclean
|
8
|
54 mostlyclean:
|
|
55 rm -f *.toc *.aux *.oaux *.log *.cp *.cps *.fn *.fns *.tp *.tps \
|
|
56 *.vr *.vrs *.pg *.pgs *.ky *.kys
|
|
57 clean: mostlyclean
|
|
58 rm -f *.dvi *.ps make.out core
|
|
59 distclean: clean
|
|
60 realclean: clean
|
|
61 extraclean: clean
|
|
62 -rm -f *~ \#*
|