Mercurial > hg > xemacs-beta
comparison man/internals/Makefile @ 8:4b173ad71786 r19-15b5
Import from CVS: tag r19-15b5
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:47:35 +0200 |
parents | 376386a54a3c |
children | 8d2a9b52c682 |
comparison
equal
deleted
inserted
replaced
7:c153ca296910 | 8:4b173ad71786 |
---|---|
1 # Makefile for the XEmacs Internals Manual. | 1 # Makefile for the XEmacs Internals Manual. |
2 # | |
3 # based on the Lisp Reference Manual. | |
4 | 2 |
5 # Redefine `TEX' if `tex' does not invoke plain TeX. For example: | 3 # This file is part of XEmacs. |
6 # TEX=platex | |
7 | 4 |
8 TEX=tex | 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 | 9 |
10 # Where the TeX macros are kept: | 10 # XEmacs is distributed in the hope that it will be useful, but WITHOUT |
11 texmacrodir = /usr/local/lib/tex/macros | 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. | |
12 | 14 |
13 # Where the Emacs hierarchy lives ($EMACS in the INSTALL document for Emacs.) | 15 # You should have received a copy of the GNU General Public License |
14 # For example: | 16 # along with XEmacs; see the file COPYING. If not, write to |
15 # emacslibdir = /usr/local/gnu/lib/emacs | 17 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
16 | 18 # Boston, MA 02111-1307, USA. |
17 # Directory where Emacs is installed, by default: | |
18 emacslibdir = /usr/local/xemacs | |
19 | |
20 # Unless you have a nonstandard Emacs installation, these shouldn't have to | |
21 # be changed. | |
22 prefix = /usr/local | |
23 infodir = ${prefix}/info | |
24 | |
25 # The name of the manual: | |
26 | 19 |
27 VERSION=1.0 | 20 VERSION=1.0 |
28 NAME=internals | 21 NAME=internals |
29 manual = xemacs-internals-manual-19-$(VERSION) | 22 manual = xemacs-internals-manual-19-$(VERSION) |
30 | 23 |
33 | 26 |
34 # List of all the texinfo files in the manual: | 27 # List of all the texinfo files in the manual: |
35 | 28 |
36 srcs = internals.texi index.unperm index.perm | 29 srcs = internals.texi index.unperm index.perm |
37 | 30 |
38 all: ../../info/$(NAME).info | 31 all : info |
32 info : ../../info/$(NAME).info | |
39 | 33 |
40 $(NAME).dvi: $(srcs) index.texi ../texindex | 34 ../../info/$(NAME).info: $(srcs) index.texi |
35 makeinfo $(NAME).texi | |
36 | |
37 dvi : $(NAME).dvi | |
38 | |
39 $(NAME).dvi: $(srcs) index.texi | |
41 # Avoid losing old contents of aux file entirely. | 40 # Avoid losing old contents of aux file entirely. |
42 -mv $(NAME).aux $(NAME).oaux | 41 -mv $(NAME).aux $(NAME).oaux |
43 # First shot to define xrefs: | 42 # First shot to define xrefs: |
44 $(TEX) $(NAME).texi | 43 $(TEX) $(NAME).texi |
45 if [ a${permuted_index} != a ]; \ | 44 if [ a${permuted_index} != a ]; \ |
46 then \ | 45 then ./permute-index && mv permuted.fns $(NAME).fns; \ |
47 ./permute-index; \ | 46 else texindex $(NAME).??; \ |
48 mv permuted.fns $(NAME).fns; \ | |
49 else \ | |
50 ../texindex $(NAME).??; \ | |
51 fi | 47 fi |
52 $(TEX) $(NAME).texi | 48 $(TEX) $(NAME).texi |
53 | 49 |
54 index.texi: | 50 index.texi: |
55 if [ a${permuted_index} != a ]; \ | 51 if [ a${permuted_index} != a ]; \ |
56 then \ | 52 then ln -s index.perm index.texi; \ |
57 ln -s index.perm index.texi; \ | 53 else ln -s index.unperm index.texi; \ |
58 else \ | |
59 ln -s index.unperm index.texi; \ | |
60 fi | 54 fi |
61 | |
62 ../../info/$(NAME).info: $(srcs) index.texi ../makeinfo | |
63 ../makeinfo $(NAME).texi | |
64 | 55 |
65 mostlyclean: | 56 mostlyclean: |
66 rm -f *.toc *.aux *.log *.cp *.cps *.fn *.fns *.tp *.tps \ | 57 rm -f *.toc *.aux *.log *.cp *.cps *.fn *.fns *.tp *.tps \ |
67 *.vr *.vrs *.pg *.pgs *.ky *.kys | 58 *.vr *.vrs *.pg *.pgs *.ky *.kys |
68 | |
69 clean: mostlyclean | 59 clean: mostlyclean |
70 rm -f *.dvi *.ps | 60 rm -f *.dvi *.ps make.out core index.texi |
71 rm -f make.out core | 61 distclean: clean |
72 rm -f index.texi | 62 realclean: clean |
73 | 63 extraclean: clean |
74 # not working. | |
75 #install: elisp elisp.dvi | |
76 # mv elisp elisp-* $(infodir) | |
77 # @echo also add the line for elisp to $(infodir)/dir. | |
78 | |
79 # not working. | |
80 #installall: install | |
81 # install -c texinfo.tex $(texmacrodir) | |
82 | |
83 distclean: clean | |
84 realclean: distclean | |
85 extraclean: distclean | |
86 -rm -f *~ \#* | 64 -rm -f *~ \#* |
87 | |
88 ../texindex: | |
89 (cd ..; make texindex) | |
90 | |
91 # not working. | |
92 #maintainer-clean: clean | |
93 # rm -f elisp elisp-* | |
94 | |
95 # not working. | |
96 # dist: | |
97 # -mkdir temp | |
98 # -mkdir temp/$(manual) | |
99 # -ln README Makefile permute-index $(srcs) \ | |
100 # texinfo.tex getopt.c getopt1.c getopt.h \ | |
101 # elisp.dvi elisp.aux elisp.??s elisp elisp-[0-9] elisp-[0-9][0-9] temp/$(manual) | |
102 # -rm -f temp/$(manual)/texindex.c temp/$(manual)/makeinfo.c | |
103 # cp texindex.c makeinfo.c temp/$(manual) | |
104 # (cd temp/$(manual); rm -f *~) | |
105 # (cd temp; tar chf - $(manual)) | gzip > $(manual).tar.gz | |
106 # -rm -rf temp | |
107 | |
108 ../makeinfo: | |
109 (cd ..; make makeinfo) |