Mercurial > hg > xemacs-beta
comparison man/internals/Makefile @ 0:376386a54a3c r19-14
Import from CVS: tag r19-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:45:50 +0200 |
parents | |
children | 4b173ad71786 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:376386a54a3c |
---|---|
1 # Makefile for the XEmacs Internals Manual. | |
2 # | |
3 # based on the Lisp Reference Manual. | |
4 | |
5 # Redefine `TEX' if `tex' does not invoke plain TeX. For example: | |
6 # TEX=platex | |
7 | |
8 TEX=tex | |
9 | |
10 # Where the TeX macros are kept: | |
11 texmacrodir = /usr/local/lib/tex/macros | |
12 | |
13 # Where the Emacs hierarchy lives ($EMACS in the INSTALL document for Emacs.) | |
14 # For example: | |
15 # emacslibdir = /usr/local/gnu/lib/emacs | |
16 | |
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 | |
27 VERSION=1.0 | |
28 NAME=internals | |
29 manual = xemacs-internals-manual-19-$(VERSION) | |
30 | |
31 # Uncomment this line for permuted index. | |
32 # permuted_index = 1 | |
33 | |
34 # List of all the texinfo files in the manual: | |
35 | |
36 srcs = internals.texi index.unperm index.perm | |
37 | |
38 all: ../../info/$(NAME).info | |
39 | |
40 $(NAME).dvi: $(srcs) index.texi ../texindex | |
41 # Avoid losing old contents of aux file entirely. | |
42 -mv $(NAME).aux $(NAME).oaux | |
43 # First shot to define xrefs: | |
44 $(TEX) $(NAME).texi | |
45 if [ a${permuted_index} != a ]; \ | |
46 then \ | |
47 ./permute-index; \ | |
48 mv permuted.fns $(NAME).fns; \ | |
49 else \ | |
50 ../texindex $(NAME).??; \ | |
51 fi | |
52 $(TEX) $(NAME).texi | |
53 | |
54 index.texi: | |
55 if [ a${permuted_index} != a ]; \ | |
56 then \ | |
57 ln -s index.perm index.texi; \ | |
58 else \ | |
59 ln -s index.unperm index.texi; \ | |
60 fi | |
61 | |
62 ../../info/$(NAME).info: $(srcs) index.texi ../makeinfo | |
63 ../makeinfo $(NAME).texi | |
64 | |
65 mostlyclean: | |
66 rm -f *.toc *.aux *.log *.cp *.cps *.fn *.fns *.tp *.tps \ | |
67 *.vr *.vrs *.pg *.pgs *.ky *.kys | |
68 | |
69 clean: mostlyclean | |
70 rm -f *.dvi *.ps | |
71 rm -f make.out core | |
72 rm -f index.texi | |
73 | |
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 *~ \#* | |
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) |