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