Mercurial > hg > xemacs-beta
comparison man/internals/Makefile @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
411:12e008d41344 | 412:697ef44129c6 |
---|---|
1 # Makefile for the XEmacs Internals 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 | |
20 VERSION=1.0 | |
21 NAME=internals | |
22 manual = xemacs-internals-manual-19-$(VERSION) | |
23 | |
24 TEXI2DVI = texi2dvi | |
25 MAKEINFO = makeinfo | |
26 | |
27 # Uncomment this line for permuted index. | |
28 # permuted_index = 1 | |
29 | |
30 # List of all the texinfo files in the manual: | |
31 | |
32 srcs = internals.texi index.unperm index.perm | |
33 | |
34 all : info | |
35 info : ../../info/$(NAME).info | |
36 | |
37 ../../info/$(NAME).info: $(srcs) index.texi | |
38 @echo "Expect a coredump if you are not using makeinfo 1.68 (or later)" | |
39 $(MAKEINFO) $(NAME).texi | |
40 @rm -f core | |
41 | |
42 dvi : $(NAME).dvi | |
43 | |
44 $(NAME).dvi: $(srcs) index.texi | |
45 # Avoid losing old contents of aux file entirely. | |
46 -mv $(NAME).aux $(NAME).oaux | |
47 # First shot to define xrefs: | |
48 $(TEX) $(NAME).texi | |
49 if [ a${permuted_index} != a ]; \ | |
50 then ./permute-index && mv permuted.fns $(NAME).fns; \ | |
51 else texindex $(NAME).??; \ | |
52 fi | |
53 $(TEX) $(NAME).texi | |
54 | |
55 index.texi: | |
56 if [ a${permuted_index} != a ]; \ | |
57 then ln -s index.perm index.texi; \ | |
58 else ln -s index.unperm index.texi; \ | |
59 fi | |
60 | |
61 .PHONY: mostlyclean clean distclean realclean extraclean | |
62 mostlyclean: | |
63 rm -f *.toc *.aux *.log *.cp *.cps *.fn *.fns *.tp *.tps \ | |
64 *.vr *.vrs *.pg *.pgs *.ky *.kys | |
65 clean: mostlyclean | |
66 rm -f *.dvi *.ps make.out core index.texi | |
67 distclean: clean | |
68 realclean: clean | |
69 extraclean: clean | |
70 -rm -f *~ \#* |