5 top_srcdir = @top_srcdir@
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
17 INSTALL_DATA = @INSTALL_DATA@
23 ja: gnus-ja message-ja
25 # Rule for XEmacs package.
27 $(EMACS) -batch -q -no-site-file -l ../lisp/dgnushack.el \
28 -f dgnushack-add-info-suffix-maybe
31 for file in gnus message gnus-ja message-ja; do \
32 if test -f $$file.texi_; then \
33 mv $$file.texi_ $$file.texi; \
37 most: texi2latex.elc latex latexps
39 .SUFFIXES: .texi .dvi .ps
42 if test $(MAKEINFO) = no; then \
43 $(EMACSINFO) $< $(XINFOSWI); \
48 dvi: gnus.dvi message.dvi refcard.dvi
51 $(PERL) -n -e 'print unless (/\@iflatex/ .. /\@end iflatex/)' $< > gnustmp.texi
52 $(TEXI2DVI) gnustmp.texi
56 refcard.dvi: refcard.tex gnuslogo.refcard gnusref.tex
60 rm -f gnus.*.bak *.ky *.cp *.fn *.cps *.kys *.log *.aux *.dvi *.vr \
61 *.tp *.toc *.pg gnus.latexi *.aux *.[cgk]idx \
62 gnus.ilg gnus.ind gnus.[cgk]ind gnus.idx \
63 gnus.tmptexi *.tmplatexi gnus.tmplatexi1 texput.log *.orig *.rej \
64 gnus.latexi*~* tmp/*.ps xface.tex picons.tex smiley.tex *.latexi
67 makeinfo -o gnus gnus.texi
68 makeinfo -o message message.texi
70 texi2latex.elc: texi2latex.el
71 $(EMACS) -batch -l bytecomp --eval '(byte-compile-file "texi2latex.el")'
73 latex: gnus.texi texi2latex.elc
74 $(EMACS) -batch -q -no-site-file gnus.texi -l ./texi2latex.elc -f latexi-translate
79 egrep -v "label.*Index|chapter.*Index" gnus.latexi > gnus.tmplatexi1
80 $(LATEX) gnus.tmplatexi1
82 makeindex -o gnus.kind gnus.kidx
83 makeindex -o gnus.cind gnus.cidx
84 makeindex -o gnus.gind gnus.gidx
85 sed 's/\\char 5E\\relax {}/\\symbol{"5E}/' < gnus.kind > gnus.tmpkind
86 mv gnus.tmpkind gnus.kind
87 egrep -v "end{document}" gnus.tmplatexi1 > gnus.tmplatexi
88 cat postamble.tex >> gnus.tmplatexi
89 $(LATEX) gnus.tmplatexi
90 $(LATEX) gnus.tmplatexi
91 $(DVIPS) -t $(PAPERTYPE) -f gnus.dvi > gnus.ps
103 rm -f gnus-manual-a4.ps.gz gnus-manual-standard.ps.gz
105 mv gnus.ps gnus-manual-a4.ps
106 gzip gnus-manual-a4.ps
107 sed 's/,a4paper/,letterpaper/' gnus.latexi > gnus-standard.latexi
108 mv gnus-standard.latexi gnus.latexi
109 make latexps PAPERTYPE=letter
110 mv gnus.ps gnus-manual-standard.ps
111 gzip gnus-manual-standard.ps
114 cp gnus-manual-standard.ps.gz \
115 gnus-manual-a4.ps.gz \
116 /local/ftp/pub/emacs/gnus/manual
117 mv gnus-manual-standard.ps.gz \
118 gnus-manual-a4.ps.gz \
119 /hom/larsi/www_docs/www.gnus.org/documents
123 rm -f gnus.dvi gnus.ps texi2latex.elc
127 rm -f *.orig *.rej *.elc *~ gnus gnus-[0-9] gnus-[0-9][0-9] Makefile
128 rm -f message message-[0-9]
131 $(SHELL) $(top_srcdir)/mkinstalldirs $(infodir)
132 @for file in gnus message gnus-ja message-ja; do \
133 for ifile in `echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
134 if test -f $$ifile; then \
135 echo " $(INSTALL_DATA) $$ifile $(infodir)/$$ifile"; \
136 $(INSTALL_DATA) $$ifile $(infodir)/$$ifile; \
142 if [ ! -e tmp ]; then mkdir tmp; fi
152 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
153 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
157 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
160 giftopnm misc/larsi.gif | ppmtopgm | pnmtops -noturn > tmp/larsi.ps
161 tifftopnm misc/eseptember.tif | pnmscale 4 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/september.ps
162 tifftopnm misc/fseptember.tif | pnmscale 2 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/fseptember.ps
163 tifftopnm misc/fred.tif | pnmscale 2 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/fred.ps
164 tifftopnm misc/ered.tif | pnmscale 2 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/red.ps
167 cd etc; for i in gnus-*.xpm; do echo $$i; xpmtoppm $$i | ppmtopgm | pnmdepth 255 | pnmtops -noturn > ../tmp/`basename $$i .xpm`.ps; done
170 cd picons; for i in *.xbm; do echo $$i; xbmtopbm $$i | pnmtops -noturn > ../tmp/picons-`basename $$i .xbm`.ps; done
171 cd picons; for i in *.gif; do echo $$i; giftopnm $$i | ppmtopgm | pnmtops -noturn > ../tmp/picons-`basename $$i .gif`.ps; done
172 for i in tmp/picons-*.ps; do echo "\\gnuspicon{$$i}"; done > picons.tex
175 cd xface; for i in *.gif; do echo $$i; giftopnm $$i | ppmtopgm | pnmtops -noturn > ../tmp/xface-`basename $$i .gif`.ps; done
176 for i in tmp/xface-*.ps; do \
177 if [ -n "$$a" ]; then a=""; echo "{$$i}"; else \
178 a="h"; echo -n "\\gnusxface{$$i}"; fi done > xface.tex; \
179 if [ -n "$$a" ]; then echo "{$$i}" >> xface.tex; fi
182 cd smilies; tifftopnm BigFace.tif | ppmtopgm | pnmtops > ../tmp/BigFace.ps
183 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
184 for i in tmp/smiley-*.ps; do \
185 if [ -n "$$a" ]; then a=""; echo "{$$i}"; else \
186 a="h"; echo -n "\\gnussmiley{$$i}"; fi done > smiley.tex; \
187 if [ -n "$$a" ]; then echo "{$$i}" >> smiley.tex; fi
190 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
197 Makefile: $(srcdir)/Makefile.in ../config.status
199 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
201 # Tell versions [3.59,3.63) of GNU make to not export all variables.
202 # Otherwise a system limit (for SysV at least) may be exceeded.