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