5 top_srcdir = @top_srcdir@
13 FLAGS=-batch -q -no-site-file
14 INFOSWI=-l ./dgnushack.el -f dgnushack-texi-format
15 XINFOSWI=-l ./dgnushack.el -f dgnushack-texi-add-suffix-and-format
21 INSTALL_DATA = @INSTALL_DATA@
25 all: gnus message emacs-mime
26 all-info: gnus.info message.info emacs-mime.info
28 gnus.info: gnus.texi gnus-faq.texi
29 message.info: message.texi
30 emacs-mime.info: emacs-mime.texi
32 ja: gnus-ja message-ja
33 ja-info: gnus-ja.info message-ja.info
35 gnus-ja.info: gnus-ja.texi gnus-faq-ja.texi
36 message-ja.info: message-ja.texi
38 most: texi2latex.elc latex latexps
41 if test $(MAKEINFO) = no; then \
42 cd ../lisp && $(EMACS) $(FLAGS) $(XINFOSWI) ../texi/$<; \
47 .SUFFIXES: .texi .dvi .ps .pdf
50 if test $(MAKEINFO) = no; then \
51 cd ../lisp && $(EMACS) $(FLAGS) $(INFOSWI) ../texi/$<; \
56 dvi: gnus.dvi message.dvi refcard.dvi emacs-mime.dvi
58 pdf: gnus.pdf message.pdf refcard.pdf emacs-mime.pdf
61 $(PERL) -n -e 'print unless (/\@iflatex/ .. /\@end iflatex/)' $< > gnustmp.texi
62 $(TEXI2DVI) gnustmp.texi
67 $(PERL) -n -e 'print unless (/\@iflatex/ .. /\@end iflatex/)' $< > gnustmp.texi
68 $(TEXI2PDF) gnustmp.texi
72 refcard.dvi: refcard.tex gnuslogo.refcard gnusref.tex
76 refcard.pdf: refcard.tex gnuslogo.refcard gnusref.tex
77 epstopdf gnuslogo.refcard --outfile=gnuslogo.refcard.pdf
78 $(PDFLATEX) refcard.tex
81 rm -f gnus.*.bak *.ky *.cp *.fn *.cps *.kys *.log *.aux *.dvi *.vr \
82 *.tp *.toc *.pg gnus.latexi *.aux *.[cgk]idx \
83 gnus.ilg gnus.ind gnus.[cgk]ind gnus.idx \
84 gnus.tmptexi *.tmplatexi gnus.tmplatexi1 texput.log *.orig *.rej \
85 gnus.latexi*~* tmp/*.ps xface.tex picons.tex smiley.tex *.latexi \
86 gnus.info* gnus-ja.info* message.info* message-ja.info* \
88 rm -f *.orig *.rej *.elc *~ gnus gnus-[0-9] gnus-[0-9][0-9]
89 rm -f message message-[0-9]
91 rm -f gnus-ja gnus-ja-[0-9] gnus-ja-[0-9][0-9]
92 rm -f message-ja message-ja-[0-9]
95 makeinfo -o gnus gnus.texi
96 makeinfo -o message message.texi
98 texi2latex.elc: texi2latex.el
99 $(EMACSINFO) -batch -l bytecomp --eval '(byte-compile-file "texi2latex.el")'
101 latex: gnus.texi texi2latex.elc
102 $(EMACSINFO) -batch -q -no-site-file gnus.texi -l ./texi2latex.elc -f latexi-translate
105 $(MAKE) texi2latex.elc
107 egrep -v "label.*Index|chapter.*Index" gnus.latexi > gnus.tmplatexi1
108 $(LATEX) gnus.tmplatexi1
110 makeindex -o gnus.kind gnus.kidx
111 makeindex -o gnus.cind gnus.cidx
112 makeindex -o gnus.gind gnus.gidx
113 sed 's/\\char 5E\\relax {}/\\symbol{"5E}/' < gnus.kind > gnus.tmpkind
114 mv gnus.tmpkind gnus.kind
115 egrep -v "end{document}" gnus.tmplatexi1 > gnus.tmplatexi
116 cat postamble.tex >> gnus.tmplatexi
117 $(LATEX) gnus.tmplatexi
118 $(LATEX) gnus.tmplatexi
119 $(DVIPS) -t $(PAPERTYPE) -f gnus.dvi > gnus.ps
131 rm -f gnus-manual-a4.ps.gz gnus-manual-standard.ps.gz
133 mv gnus.ps gnus-manual-a4.ps
134 gzip gnus-manual-a4.ps
135 sed 's/,a4paper/,letterpaper/' gnus.latexi > gnus-standard.latexi
136 mv gnus-standard.latexi gnus.latexi
137 $(MAKE) latexps PAPERTYPE=letter
138 mv gnus.ps gnus-manual-standard.ps
139 gzip gnus-manual-standard.ps
142 cp gnus-manual-standard.ps.gz \
143 gnus-manual-a4.ps.gz \
144 /local/ftp/pub/emacs/gnus/manual
145 mv gnus-manual-standard.ps.gz \
146 gnus-manual-a4.ps.gz \
147 /hom/larsi/www_docs/www.gnus.org/documents
150 rm -f gnus.dvi gnus.ps texi2latex.elc
156 $(SHELL) $(top_srcdir)/mkinstalldirs $(infodir)
157 @for file in gnus message emacs-mime gnus-ja message-ja; do \
158 for ifile in `echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
159 if test -f $$ifile; then \
160 echo " $(INSTALL_DATA) $$ifile $(infodir)/$$ifile"; \
161 $(INSTALL_DATA) $$ifile $(infodir)/$$ifile; \
167 if [ ! -e tmp ]; then mkdir tmp; fi
177 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
178 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
182 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
185 giftopnm misc/larsi.gif | ppmtopgm | pnmtops -noturn > tmp/larsi.ps
186 tifftopnm misc/eseptember.tif | pnmscale 4 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/september.ps
187 tifftopnm misc/fseptember.tif | pnmscale 2 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/fseptember.ps
188 tifftopnm misc/fred.tif | pnmscale 2 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/fred.ps
189 tifftopnm misc/ered.tif | pnmscale 2 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/red.ps
192 cd etc; for i in gnus-*.xpm; do echo $$i; xpmtoppm $$i | ppmtopgm | pnmdepth 255 | pnmtops -noturn > ../tmp/`basename $$i .xpm`.ps; done
195 cd picons; for i in *.xbm; do echo $$i; xbmtopbm $$i | pnmtops -noturn > ../tmp/picons-`basename $$i .xbm`.ps; done
196 cd picons; for i in *.gif; do echo $$i; giftopnm $$i | ppmtopgm | pnmtops -noturn > ../tmp/picons-`basename $$i .gif`.ps; done
197 for i in tmp/picons-*.ps; do echo "\\gnuspicon{$$i}"; done > picons.tex
200 cd xface; for i in *.gif; do echo $$i; giftopnm $$i | ppmtopgm | pnmtops -noturn > ../tmp/xface-`basename $$i .gif`.ps; done
201 for i in tmp/xface-*.ps; do \
202 if [ -n "$$a" ]; then a=""; echo "{$$i}"; else \
203 a="h"; echo -n "\\gnusxface{$$i}"; fi done > xface.tex; \
204 if [ -n "$$a" ]; then echo "{$$i}" >> xface.tex; fi
207 cd smilies; tifftopnm BigFace.tif | ppmtopgm | pnmtops > ../tmp/BigFace.ps
208 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
209 for i in tmp/smiley-*.ps; do \
210 if [ -n "$$a" ]; then a=""; echo "{$$i}"; else \
211 a="h"; echo -n "\\gnussmiley{$$i}"; fi done > smiley.tex; \
212 if [ -n "$$a" ]; then echo "{$$i}" >> smiley.tex; fi
215 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
218 $(MAKE) texi2latex.elc
222 Makefile: $(srcdir)/Makefile.in ../config.status
224 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
226 # Tell versions [3.59,3.63) of GNU make to not export all variables.
227 # Otherwise a system limit (for SysV at least) may be exceeded.