5 top_srcdir = @top_srcdir@
12 FLAGS=-batch -q -no-site-file
13 INFOSWI=-l ./dgnushack.el -f dgnushack-texi-format
14 XINFOSWI=-l ./dgnushack.el -f dgnushack-texi-add-suffix-and-format
19 INSTALL_DATA = @INSTALL_DATA@
23 all: gnus message emacs-mime
24 all-info: gnus.info message.info emacs-mime.info
26 gnus.info: gnus.texi gnus-faq.texi
27 message.info: message.texi
28 emacs-mime.info: emacs-mime.texi
30 ja: gnus-ja message-ja
31 ja-info: gnus-ja.info message-ja.info
33 gnus-ja.info: gnus-ja.texi gnus-faq-ja.texi
34 message-ja.info: message-ja.texi
36 most: texi2latex.elc latex latexps
39 if test $(MAKEINFO) = no; then \
40 cd ../lisp && $(EMACS) $(FLAGS) $(XINFOSWI) ../texi/$<; \
45 .SUFFIXES: .texi .dvi .ps
48 if test $(MAKEINFO) = no; then \
49 cd ../lisp && $(EMACS) $(FLAGS) $(INFOSWI) ../texi/$<; \
54 dvi: gnus.dvi message.dvi refcard.dvi emacs-mime.dvi
57 $(PERL) -n -e 'print unless (/\@iflatex/ .. /\@end iflatex/)' $< > gnustmp.texi
58 $(TEXI2DVI) gnustmp.texi
62 refcard.dvi: refcard.tex gnuslogo.refcard gnusref.tex
66 rm -f gnus.*.bak *.ky *.cp *.fn *.cps *.kys *.log *.aux *.dvi *.vr \
67 *.tp *.toc *.pg gnus.latexi *.aux *.[cgk]idx \
68 gnus.ilg gnus.ind gnus.[cgk]ind gnus.idx \
69 gnus.tmptexi *.tmplatexi gnus.tmplatexi1 texput.log *.orig *.rej \
70 gnus.latexi*~* tmp/*.ps xface.tex picons.tex smiley.tex *.latexi \
71 gnus.info* gnus-ja.info* message.info* message-ja.info* \
73 rm -f *.orig *.rej *.elc *~ gnus gnus-[0-9] gnus-[0-9][0-9]
74 rm -f message message-[0-9]
76 rm -f gnus-ja gnus-ja-[0-9] gnus-ja-[0-9][0-9]
77 rm -f message-ja message-ja-[0-9]
80 makeinfo -o gnus gnus.texi
81 makeinfo -o message message.texi
83 texi2latex.elc: texi2latex.el
84 $(EMACS) -batch -l bytecomp --eval '(byte-compile-file "texi2latex.el")'
86 latex: gnus.texi texi2latex.elc
87 $(EMACS) -batch -q -no-site-file gnus.texi -l ./texi2latex.elc -f latexi-translate
90 $(MAKE) texi2latex.elc
92 egrep -v "label.*Index|chapter.*Index" gnus.latexi > gnus.tmplatexi1
93 $(LATEX) gnus.tmplatexi1
95 makeindex -o gnus.kind gnus.kidx
96 makeindex -o gnus.cind gnus.cidx
97 makeindex -o gnus.gind gnus.gidx
98 sed 's/\\char 5E\\relax {}/\\symbol{"5E}/' < gnus.kind > gnus.tmpkind
99 mv gnus.tmpkind gnus.kind
100 egrep -v "end{document}" gnus.tmplatexi1 > gnus.tmplatexi
101 cat postamble.tex >> gnus.tmplatexi
102 $(LATEX) gnus.tmplatexi
103 $(LATEX) gnus.tmplatexi
104 $(DVIPS) -t $(PAPERTYPE) -f gnus.dvi > gnus.ps
116 rm -f gnus-manual-a4.ps.gz gnus-manual-standard.ps.gz
118 mv gnus.ps gnus-manual-a4.ps
119 gzip gnus-manual-a4.ps
120 sed 's/,a4paper/,letterpaper/' gnus.latexi > gnus-standard.latexi
121 mv gnus-standard.latexi gnus.latexi
122 $(MAKE) latexps PAPERTYPE=letter
123 mv gnus.ps gnus-manual-standard.ps
124 gzip gnus-manual-standard.ps
127 cp gnus-manual-standard.ps.gz \
128 gnus-manual-a4.ps.gz \
129 /local/ftp/pub/emacs/gnus/manual
130 mv gnus-manual-standard.ps.gz \
131 gnus-manual-a4.ps.gz \
132 /hom/larsi/www_docs/www.gnus.org/documents
135 rm -f gnus.dvi gnus.ps texi2latex.elc
141 $(SHELL) $(top_srcdir)/mkinstalldirs $(infodir)
142 @for file in gnus message emacs-mime gnus-ja message-ja; do \
143 for ifile in `echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
144 if test -f $$ifile; then \
145 echo " $(INSTALL_DATA) $$ifile $(infodir)/$$ifile"; \
146 $(INSTALL_DATA) $$ifile $(infodir)/$$ifile; \
152 if [ ! -e tmp ]; then mkdir tmp; fi
162 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
163 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
167 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
170 giftopnm misc/larsi.gif | ppmtopgm | pnmtops -noturn > tmp/larsi.ps
171 tifftopnm misc/eseptember.tif | pnmscale 4 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/september.ps
172 tifftopnm misc/fseptember.tif | pnmscale 2 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/fseptember.ps
173 tifftopnm misc/fred.tif | pnmscale 2 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/fred.ps
174 tifftopnm misc/ered.tif | pnmscale 2 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/red.ps
177 cd etc; for i in gnus-*.xpm; do echo $$i; xpmtoppm $$i | ppmtopgm | pnmdepth 255 | pnmtops -noturn > ../tmp/`basename $$i .xpm`.ps; done
180 cd picons; for i in *.xbm; do echo $$i; xbmtopbm $$i | pnmtops -noturn > ../tmp/picons-`basename $$i .xbm`.ps; done
181 cd picons; for i in *.gif; do echo $$i; giftopnm $$i | ppmtopgm | pnmtops -noturn > ../tmp/picons-`basename $$i .gif`.ps; done
182 for i in tmp/picons-*.ps; do echo "\\gnuspicon{$$i}"; done > picons.tex
185 cd xface; for i in *.gif; do echo $$i; giftopnm $$i | ppmtopgm | pnmtops -noturn > ../tmp/xface-`basename $$i .gif`.ps; done
186 for i in tmp/xface-*.ps; do \
187 if [ -n "$$a" ]; then a=""; echo "{$$i}"; else \
188 a="h"; echo -n "\\gnusxface{$$i}"; fi done > xface.tex; \
189 if [ -n "$$a" ]; then echo "{$$i}" >> xface.tex; fi
192 cd smilies; tifftopnm BigFace.tif | ppmtopgm | pnmtops > ../tmp/BigFace.ps
193 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
194 for i in tmp/smiley-*.ps; do \
195 if [ -n "$$a" ]; then a=""; echo "{$$i}"; else \
196 a="h"; echo -n "\\gnussmiley{$$i}"; fi done > smiley.tex; \
197 if [ -n "$$a" ]; then echo "{$$i}" >> smiley.tex; fi
200 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
203 $(MAKE) texi2latex.elc
207 Makefile: $(srcdir)/Makefile.in ../config.status
209 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
211 # Tell versions [3.59,3.63) of GNU make to not export all variables.
212 # Otherwise a system limit (for SysV at least) may be exceeded.