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