5 top_srcdir = @top_srcdir@
11 FLAGS=-batch -q -no-site-file
12 INFOSWI=-l ./dgnushack.el -f dgnushack-texi-format
13 XINFOSWI=-l ./dgnushack.el -f dgnushack-texi-add-suffix-and-format
18 INSTALL_DATA = @INSTALL_DATA@
22 all: gnus message emacs-mime
23 all-info: gnus.info message.info emacs-mime.info
25 gnus.info: gnus.texi gnus-faq.texi
26 message.info: message.texi
27 emacs-mime.info: emacs-mime.texi
29 ja: gnus-ja message-ja
30 ja-info: gnus-ja.info message-ja.info
32 gnus-ja.info: gnus-ja.texi gnus-faq-ja.texi
33 message-ja.info: message-ja.texi
35 most: texi2latex.elc latex latexps
38 if test $(MAKEINFO) = no; then \
39 cd ../lisp && $(EMACS) $(FLAGS) $(XINFOSWI) ../texi/$<; \
44 .SUFFIXES: .texi .dvi .ps
47 if test $(MAKEINFO) = no; then \
48 cd ../lisp && $(EMACS) $(FLAGS) $(INFOSWI) ../texi/$<; \
53 dvi: gnus.dvi message.dvi refcard.dvi emacs-mime.dvi
56 $(PERL) -n -e 'print unless (/\@iflatex/ .. /\@end iflatex/)' $< > gnustmp.texi
57 $(TEXI2DVI) gnustmp.texi
61 refcard.dvi: refcard.tex gnuslogo.refcard gnusref.tex
65 rm -f gnus.*.bak *.ky *.cp *.fn *.cps *.kys *.log *.aux *.dvi *.vr \
66 *.tp *.toc *.pg gnus.latexi *.aux *.[cgk]idx \
67 gnus.ilg gnus.ind gnus.[cgk]ind gnus.idx \
68 gnus.tmptexi *.tmplatexi gnus.tmplatexi1 texput.log *.orig *.rej \
69 gnus.latexi*~* tmp/*.ps xface.tex picons.tex smiley.tex *.latexi \
70 gnus.info* gnus-ja.info* message.info* message-ja.info* \
72 rm -f *.orig *.rej *.elc *~ gnus gnus-[0-9] gnus-[0-9][0-9]
73 rm -f message message-[0-9]
75 rm -f gnus-ja gnus-ja-[0-9] gnus-ja-[0-9][0-9]
76 rm -f message-ja message-ja-[0-9]
79 makeinfo -o gnus gnus.texi
80 makeinfo -o message message.texi
82 texi2latex.elc: texi2latex.el
83 $(EMACS) -batch -l bytecomp --eval '(byte-compile-file "texi2latex.el")'
85 latex: gnus.texi texi2latex.elc
86 $(EMACS) -batch -q -no-site-file gnus.texi -l ./texi2latex.elc -f latexi-translate
89 $(MAKE) texi2latex.elc
91 egrep -v "label.*Index|chapter.*Index" gnus.latexi > gnus.tmplatexi1
92 $(LATEX) gnus.tmplatexi1
94 makeindex -o gnus.kind gnus.kidx
95 makeindex -o gnus.cind gnus.cidx
96 makeindex -o gnus.gind gnus.gidx
97 sed 's/\\char 5E\\relax {}/\\symbol{"5E}/' < gnus.kind > gnus.tmpkind
98 mv gnus.tmpkind gnus.kind
99 egrep -v "end{document}" gnus.tmplatexi1 > gnus.tmplatexi
100 cat postamble.tex >> gnus.tmplatexi
101 $(LATEX) gnus.tmplatexi
102 $(LATEX) gnus.tmplatexi
103 $(DVIPS) -t $(PAPERTYPE) -f gnus.dvi > gnus.ps
115 rm -f gnus-manual-a4.ps.gz gnus-manual-standard.ps.gz
117 mv gnus.ps gnus-manual-a4.ps
118 gzip gnus-manual-a4.ps
119 sed 's/,a4paper/,letterpaper/' gnus.latexi > gnus-standard.latexi
120 mv gnus-standard.latexi gnus.latexi
121 $(MAKE) latexps PAPERTYPE=letter
122 mv gnus.ps gnus-manual-standard.ps
123 gzip gnus-manual-standard.ps
126 cp gnus-manual-standard.ps.gz \
127 gnus-manual-a4.ps.gz \
128 /local/ftp/pub/emacs/gnus/manual
129 mv gnus-manual-standard.ps.gz \
130 gnus-manual-a4.ps.gz \
131 /hom/larsi/www_docs/www.gnus.org/documents
134 rm -f gnus.dvi gnus.ps texi2latex.elc
140 $(SHELL) $(top_srcdir)/mkinstalldirs $(infodir)
141 @for file in gnus message emacs-mime gnus-ja message-ja; do \
142 for ifile in `echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
143 if test -f $$ifile; then \
144 echo " $(INSTALL_DATA) $$ifile $(infodir)/$$ifile"; \
145 $(INSTALL_DATA) $$ifile $(infodir)/$$ifile; \
151 if [ ! -e tmp ]; then mkdir tmp; fi
161 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
162 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
166 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
169 giftopnm misc/larsi.gif | ppmtopgm | pnmtops -noturn > tmp/larsi.ps
170 tifftopnm misc/eseptember.tif | pnmscale 4 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/september.ps
171 tifftopnm misc/fseptember.tif | pnmscale 2 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/fseptember.ps
172 tifftopnm misc/fred.tif | pnmscale 2 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/fred.ps
173 tifftopnm misc/ered.tif | pnmscale 2 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/red.ps
176 cd etc; for i in gnus-*.xpm; do echo $$i; xpmtoppm $$i | ppmtopgm | pnmdepth 255 | pnmtops -noturn > ../tmp/`basename $$i .xpm`.ps; done
179 cd picons; for i in *.xbm; do echo $$i; xbmtopbm $$i | pnmtops -noturn > ../tmp/picons-`basename $$i .xbm`.ps; done
180 cd picons; for i in *.gif; do echo $$i; giftopnm $$i | ppmtopgm | pnmtops -noturn > ../tmp/picons-`basename $$i .gif`.ps; done
181 for i in tmp/picons-*.ps; do echo "\\gnuspicon{$$i}"; done > picons.tex
184 cd xface; for i in *.gif; do echo $$i; giftopnm $$i | ppmtopgm | pnmtops -noturn > ../tmp/xface-`basename $$i .gif`.ps; done
185 for i in tmp/xface-*.ps; do \
186 if [ -n "$$a" ]; then a=""; echo "{$$i}"; else \
187 a="h"; echo -n "\\gnusxface{$$i}"; fi done > xface.tex; \
188 if [ -n "$$a" ]; then echo "{$$i}" >> xface.tex; fi
191 cd smilies; tifftopnm BigFace.tif | ppmtopgm | pnmtops > ../tmp/BigFace.ps
192 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
193 for i in tmp/smiley-*.ps; do \
194 if [ -n "$$a" ]; then a=""; echo "{$$i}"; else \
195 a="h"; echo -n "\\gnussmiley{$$i}"; fi done > smiley.tex; \
196 if [ -n "$$a" ]; then echo "{$$i}" >> smiley.tex; fi
199 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
202 $(MAKE) texi2latex.elc
206 Makefile: $(srcdir)/Makefile.in ../config.status
208 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
210 # Tell versions [3.59,3.63) of GNU make to not export all variables.
211 # Otherwise a system limit (for SysV at least) may be exceeded.