5 top_srcdir = @top_srcdir@
11 EMACSINFO=$(EMACS) -batch -q -no-site-file
12 INFOSWI=-l texinfmt -f texinfo-every-node-update -f texinfo-format-buffer -f save-buffer
13 XINFOSWI=-l texinfmt -f texinfo-every-node-update -f texinfo-format-buffer -f save-buffer
18 INSTALL_DATA = @INSTALL_DATA@
22 all: gnus message emacs-mime
24 ja: gnus-ja message-ja
26 # Rule for XEmacs package.
28 cd ../lisp && $(EMACS) -batch -q -no-site-file \
29 -l dgnushack.el -f dgnushack-add-info-suffix-maybe
32 for file in gnus message emacs-mime gnus-ja message-ja; do \
33 if test -f $$file.texi_; then \
34 mv $$file.texi_ $$file.texi; \
38 most: texi2latex.elc latex latexps
40 .SUFFIXES: .texi .dvi .ps
43 if test $(MAKEINFO) = no; then \
44 $(EMACSINFO) $< $(XINFOSWI); \
49 dvi: gnus.dvi message.dvi refcard.dvi emacs-mime.dvi
52 $(PERL) -n -e 'print unless (/\@iflatex/ .. /\@end iflatex/)' $< > gnustmp.texi
53 $(TEXI2DVI) gnustmp.texi
57 refcard.dvi: refcard.tex gnuslogo.refcard gnusref.tex
61 rm -f gnus.*.bak *.ky *.cp *.fn *.cps *.kys *.log *.aux *.dvi *.vr \
62 *.tp *.toc *.pg gnus.latexi *.aux *.[cgk]idx \
63 gnus.ilg gnus.ind gnus.[cgk]ind gnus.idx \
64 gnus.tmptexi *.tmplatexi gnus.tmplatexi1 texput.log *.orig *.rej \
65 gnus.latexi*~* tmp/*.ps xface.tex picons.tex smiley.tex *.latexi \
66 gnus.info* gnus-ja.info* message.info* message-ja.info* \
67 *.texi_ emacs-mime.info
70 makeinfo -o gnus gnus.texi
71 makeinfo -o message message.texi
73 texi2latex.elc: texi2latex.el
74 $(EMACS) -batch -l bytecomp --eval '(byte-compile-file "texi2latex.el")'
76 latex: gnus.texi texi2latex.elc
77 $(EMACS) -batch -q -no-site-file gnus.texi -l ./texi2latex.elc -f latexi-translate
80 $(MAKE) texi2latex.elc
82 egrep -v "label.*Index|chapter.*Index" gnus.latexi > gnus.tmplatexi1
83 $(LATEX) gnus.tmplatexi1
85 makeindex -o gnus.kind gnus.kidx
86 makeindex -o gnus.cind gnus.cidx
87 makeindex -o gnus.gind gnus.gidx
88 sed 's/\\char 5E\\relax {}/\\symbol{"5E}/' < gnus.kind > gnus.tmpkind
89 mv gnus.tmpkind gnus.kind
90 egrep -v "end{document}" gnus.tmplatexi1 > gnus.tmplatexi
91 cat postamble.tex >> gnus.tmplatexi
92 $(LATEX) gnus.tmplatexi
93 $(LATEX) gnus.tmplatexi
94 $(DVIPS) -t $(PAPERTYPE) -f gnus.dvi > gnus.ps
106 rm -f gnus-manual-a4.ps.gz gnus-manual-standard.ps.gz
108 mv gnus.ps gnus-manual-a4.ps
109 gzip gnus-manual-a4.ps
110 sed 's/,a4paper/,letterpaper/' gnus.latexi > gnus-standard.latexi
111 mv gnus-standard.latexi gnus.latexi
112 $(MAKE) latexps PAPERTYPE=letter
113 mv gnus.ps gnus-manual-standard.ps
114 gzip gnus-manual-standard.ps
117 cp gnus-manual-standard.ps.gz \
118 gnus-manual-a4.ps.gz \
119 /local/ftp/pub/emacs/gnus/manual
120 mv gnus-manual-standard.ps.gz \
121 gnus-manual-a4.ps.gz \
122 /hom/larsi/www_docs/www.gnus.org/documents
125 rm -f gnus.dvi gnus.ps texi2latex.elc
128 rm -f *.orig *.rej *.elc *~ gnus gnus-[0-9] gnus-[0-9][0-9] Makefile
129 rm -f message message-[0-9]
133 $(SHELL) $(top_srcdir)/mkinstalldirs $(infodir)
134 @for file in gnus message emacs-mime gnus-ja message-ja; do \
135 for ifile in `echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
136 if test -f $$ifile; then \
137 echo " $(INSTALL_DATA) $$ifile $(infodir)/$$ifile"; \
138 $(INSTALL_DATA) $$ifile $(infodir)/$$ifile; \
144 if [ ! -e tmp ]; then mkdir tmp; fi
154 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
155 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
159 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
162 giftopnm misc/larsi.gif | ppmtopgm | pnmtops -noturn > tmp/larsi.ps
163 tifftopnm misc/eseptember.tif | pnmscale 4 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/september.ps
164 tifftopnm misc/fseptember.tif | pnmscale 2 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/fseptember.ps
165 tifftopnm misc/fred.tif | pnmscale 2 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/fred.ps
166 tifftopnm misc/ered.tif | pnmscale 2 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/red.ps
169 cd etc; for i in gnus-*.xpm; do echo $$i; xpmtoppm $$i | ppmtopgm | pnmdepth 255 | pnmtops -noturn > ../tmp/`basename $$i .xpm`.ps; done
172 cd picons; for i in *.xbm; do echo $$i; xbmtopbm $$i | pnmtops -noturn > ../tmp/picons-`basename $$i .xbm`.ps; done
173 cd picons; for i in *.gif; do echo $$i; giftopnm $$i | ppmtopgm | pnmtops -noturn > ../tmp/picons-`basename $$i .gif`.ps; done
174 for i in tmp/picons-*.ps; do echo "\\gnuspicon{$$i}"; done > picons.tex
177 cd xface; for i in *.gif; do echo $$i; giftopnm $$i | ppmtopgm | pnmtops -noturn > ../tmp/xface-`basename $$i .gif`.ps; done
178 for i in tmp/xface-*.ps; do \
179 if [ -n "$$a" ]; then a=""; echo "{$$i}"; else \
180 a="h"; echo -n "\\gnusxface{$$i}"; fi done > xface.tex; \
181 if [ -n "$$a" ]; then echo "{$$i}" >> xface.tex; fi
184 cd smilies; tifftopnm BigFace.tif | ppmtopgm | pnmtops > ../tmp/BigFace.ps
185 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
186 for i in tmp/smiley-*.ps; do \
187 if [ -n "$$a" ]; then a=""; echo "{$$i}"; else \
188 a="h"; echo -n "\\gnussmiley{$$i}"; fi done > smiley.tex; \
189 if [ -n "$$a" ]; then echo "{$$i}" >> smiley.tex; fi
192 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
195 $(MAKE) texi2latex.elc
199 Makefile: $(srcdir)/Makefile.in ../config.status
201 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
203 # Tell versions [3.59,3.63) of GNU make to not export all variables.
204 # Otherwise a system limit (for SysV at least) may be exceeded.