Release T-gnus 6.13.0.
[elisp/gnus.git-] / texi / Makefile.in
1 prefix = @prefix@
2 infodir = @infodir@
3 srcdir = @srcdir@
4 subdir = texi
5 top_srcdir = @top_srcdir@
6
7 @SET_MAKE@
8 TEXI2DVI=texi2dvi
9 EMACS=emacs
10 MAKEINFO=@MAKEINFO@
11 EMACSINFO=$(EMACS) -batch -q -no-site-file
12 INFOSWI=-l texinfmt -f texinfo-every-node-update -f texinfo-format-buffer -f save-buffer
13 XINFOSWI=-l texinfmt -f texinfo-every-node-update -f texinfo-format-buffer -f save-buffer
14 LATEX=latex
15 DVIPS=dvips
16 PERL=perl
17 INSTALL = @INSTALL@
18 INSTALL_DATA = @INSTALL_DATA@
19 SHELL = /bin/sh
20 PAPERTYPE=a4
21
22 all: gnus message emacs-mime
23
24 ja: gnus-ja message-ja
25
26 # Rule for XEmacs package.
27 add-info-suffix:
28         cd ../lisp && $(EMACS) -batch -q -no-site-file \
29                 -l dgnushack.el -f dgnushack-add-info-suffix-maybe
30
31 remove-info-suffix:
32         for file in gnus message emacs-mime gnus-ja message-ja; do \
33           if test -f $$file.texi_; then \
34             mv $$file.texi_ $$file.texi; \
35           fi; \
36         done
37
38 most: texi2latex.elc latex latexps
39
40 .SUFFIXES: .texi .dvi .ps
41
42 .texi:
43         if test $(MAKEINFO) = no; then \
44           $(EMACSINFO) $< $(XINFOSWI); \
45         else \
46           makeinfo $<; \
47         fi
48
49 dvi: gnus.dvi message.dvi refcard.dvi emacs-mime.dvi
50
51 .texi.dvi :
52         $(PERL) -n -e 'print unless (/\@iflatex/ .. /\@end iflatex/)' $< > gnustmp.texi
53         $(TEXI2DVI) gnustmp.texi
54         cp gnustmp.dvi $*.dvi
55         rm gnustmp.*
56
57 refcard.dvi: refcard.tex gnuslogo.refcard gnusref.tex
58         $(LATEX) refcard.tex
59
60 clean:
61         rm -f gnus.*.bak *.ky *.cp *.fn *.cps *.kys *.log *.aux *.dvi *.vr \
62         *.tp *.toc *.pg gnus.latexi *.aux *.[cgk]idx \
63         gnus.ilg gnus.ind gnus.[cgk]ind gnus.idx \
64         gnus.tmptexi *.tmplatexi gnus.tmplatexi1 texput.log *.orig *.rej \
65         gnus.latexi*~* tmp/*.ps xface.tex picons.tex smiley.tex *.latexi \
66         gnus.info* gnus-ja.info* message.info* message-ja.info* \
67         *.texi_ emacs-mime.info
68
69 makeinfo:
70         makeinfo -o gnus gnus.texi
71         makeinfo -o message message.texi
72
73 texi2latex.elc: texi2latex.el
74         $(EMACS) -batch -l bytecomp --eval '(byte-compile-file "texi2latex.el")'
75
76 latex: gnus.texi texi2latex.elc
77         $(EMACS) -batch -q -no-site-file gnus.texi -l ./texi2latex.elc -f latexi-translate
78
79 latexps:
80         $(MAKE) texi2latex.elc
81         rm -f gnus.aux
82         egrep -v "label.*Index|chapter.*Index" gnus.latexi > gnus.tmplatexi1
83         $(LATEX) gnus.tmplatexi1
84         ./splitindex
85         makeindex -o gnus.kind gnus.kidx
86         makeindex -o gnus.cind gnus.cidx
87         makeindex -o gnus.gind gnus.gidx
88         sed 's/\\char 5E\\relax {}/\\symbol{"5E}/' < gnus.kind > gnus.tmpkind
89         mv gnus.tmpkind gnus.kind
90         egrep -v "end{document}" gnus.tmplatexi1 > gnus.tmplatexi
91         cat postamble.tex >> gnus.tmplatexi
92         $(LATEX) gnus.tmplatexi
93         $(LATEX) gnus.tmplatexi
94         $(DVIPS) -t $(PAPERTYPE) -f gnus.dvi > gnus.ps
95
96 pss:
97         $(MAKE) latex
98         $(MAKE) latexps
99
100 psout:
101         $(MAKE) latex
102         $(MAKE) latexboth
103         $(MAKE) out
104
105 latexboth:
106         rm -f gnus-manual-a4.ps.gz gnus-manual-standard.ps.gz
107         $(MAKE) latexps
108         mv gnus.ps gnus-manual-a4.ps
109         gzip gnus-manual-a4.ps
110         sed 's/,a4paper/,letterpaper/' gnus.latexi > gnus-standard.latexi
111         mv gnus-standard.latexi gnus.latexi
112         $(MAKE) latexps PAPERTYPE=letter
113         mv gnus.ps gnus-manual-standard.ps
114         gzip gnus-manual-standard.ps
115
116 out:
117         cp gnus-manual-standard.ps.gz \
118         gnus-manual-a4.ps.gz \
119         /local/ftp/pub/emacs/gnus/manual
120         mv gnus-manual-standard.ps.gz \
121         gnus-manual-a4.ps.gz \
122         /hom/larsi/www_docs/www.gnus.org/documents
123
124 veryclean: clean
125         rm -f gnus.dvi gnus.ps texi2latex.elc
126
127 distclean: clean
128         rm -f *.orig *.rej *.elc *~ gnus gnus-[0-9] gnus-[0-9][0-9] Makefile
129         rm -f message message-[0-9]
130         rm -f emacs-mime
131
132 install:
133         $(SHELL) $(top_srcdir)/mkinstalldirs $(infodir)
134         @for file in gnus message emacs-mime gnus-ja message-ja; do \
135           for ifile in `echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
136             if test -f $$ifile; then \
137               echo " $(INSTALL_DATA) $$ifile $(infodir)/$$ifile"; \
138               $(INSTALL_DATA) $$ifile $(infodir)/$$ifile; \
139             else : ; fi; \
140           done; \
141         done
142
143 tmps:
144         if [ ! -e tmp ]; then mkdir tmp; fi
145         $(MAKE) screens
146         $(MAKE) herdss
147         $(MAKE) etcs
148         $(MAKE) piconss
149         $(MAKE) xfaces
150         $(MAKE) smiley
151         $(MAKE) miscs
152
153 herdss:
154         cd herds ; for i in new-herd-[0-9]*.gif; do echo $$i; giftopnm $$i | pnmcrop -white | pnmmargin -white 9 | pnmscale 2 | pnmconvol convol5.pnm  | ppmtopgm | pnmdepth 255 | pnmtops -width 100 -height 100 -noturn > ../tmp/`basename $$i .gif`.ps; done
155         cd herds ; giftopnm new-herd-section.gif | pnmscale 4 | pnmconvol convol11.pnm | ppmtopgm | pnmdepth 255 | pnmtops -noturn -width 100 -height 100 > ../tmp/new-herd-section.ps
156
157
158 screens:
159         cd screen ; for i in *.gif; do echo $$i; giftopnm $$i | pnmmargin -black 1 | ppmtopgm | pnmtops -width 100 -height 100 -noturn > ../tmp/`basename $$i .gif`.ps; done
160
161 miscs:
162         giftopnm misc/larsi.gif | ppmtopgm | pnmtops -noturn > tmp/larsi.ps
163         tifftopnm misc/eseptember.tif | pnmscale 4 | ppmtopgm | pnmtops -noturn  -width 100 -height 100 > tmp/september.ps
164         tifftopnm misc/fseptember.tif | pnmscale 2 | ppmtopgm | pnmtops -noturn  -width 100 -height 100 > tmp/fseptember.ps
165         tifftopnm misc/fred.tif | pnmscale 2 | ppmtopgm | pnmtops -noturn  -width 100 -height 100 > tmp/fred.ps
166         tifftopnm misc/ered.tif | pnmscale 2 | ppmtopgm | pnmtops -noturn  -width 100 -height 100 > tmp/red.ps
167
168 etcs:
169         cd etc; for i in gnus-*.xpm; do echo $$i; xpmtoppm $$i | ppmtopgm | pnmdepth 255 | pnmtops -noturn > ../tmp/`basename $$i .xpm`.ps; done
170
171 piconss:
172         cd picons; for i in *.xbm; do echo $$i; xbmtopbm $$i | pnmtops -noturn > ../tmp/picons-`basename $$i .xbm`.ps; done
173         cd picons; for i in *.gif; do echo $$i; giftopnm $$i | ppmtopgm | pnmtops -noturn > ../tmp/picons-`basename $$i .gif`.ps; done
174         for i in tmp/picons-*.ps; do echo "\\gnuspicon{$$i}"; done > picons.tex
175
176 xfaces:
177         cd xface; for i in *.gif; do echo $$i; giftopnm $$i | ppmtopgm | pnmtops -noturn > ../tmp/xface-`basename $$i .gif`.ps; done
178         for i in tmp/xface-*.ps; do \
179                 if [ -n "$$a" ]; then a=""; echo "{$$i}"; else \
180                 a="h"; echo -n "\\gnusxface{$$i}"; fi done > xface.tex; \
181                 if [ -n "$$a" ]; then echo "{$$i}" >> xface.tex; fi
182
183 smiley:
184         cd smilies; tifftopnm BigFace.tif | ppmtopgm | pnmtops > ../tmp/BigFace.ps
185         cd smilies; for i in *.xpm; do echo $$i; sed "s/none/#FFFFFF/" $$i | xpmtoppm | ppmtopgm | pnmdepth 255 | pnmtops > ../tmp/smiley-`basename $$i .xpm`.ps; done
186         for i in tmp/smiley-*.ps; do \
187                 if [ -n "$$a" ]; then a=""; echo "{$$i}"; else \
188                 a="h"; echo -n "\\gnussmiley{$$i}"; fi done > smiley.tex; \
189                 if [ -n "$$a" ]; then echo "{$$i}" >> smiley.tex; fi
190
191 pspackage:
192         tar czvf pspackage.tar.gz gnus-faq.texi gnus.texi herds misc pagestyle.sty picons pixidx.sty postamble.tex ps screen smilies splitindex texi2latex.el xface Makefile README etc
193
194 complete:
195         $(MAKE) texi2latex.elc
196         $(MAKE) tmps
197         $(MAKE) pss
198
199 Makefile: $(srcdir)/Makefile.in ../config.status
200         cd .. \
201           && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
202
203 # Tell versions [3.59,3.63) of GNU make to not export all variables.
204 # Otherwise a system limit (for SysV at least) may be exceeded.
205 .NOEXPORT: