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@
21 all: gnus message emacs-mime
23 ja: gnus-ja message-ja
25 most: texi2latex.elc latex latexps
27 .SUFFIXES: .texi .dvi .ps
30 if test $(MAKEINFO) = no; then \
31 $(EMACSINFO) -eval '(find-file \"$<\")' $(XINFOSWI); \
36 dvi: gnus.dvi message.dvi refcard.dvi emacs-mime.dvi
39 $(PERL) -n -e 'print unless (/\@iflatex/ .. /\@end iflatex/)' $< > gnustmp.texi
40 $(TEXI2DVI) gnustmp.texi
44 refcard.dvi: refcard.tex gnuslogo.refcard gnusref.tex
48 rm -f gnus.*.bak *.ky *.cp *.fn *.cps *.kys *.log *.aux *.dvi *.vr \
49 *.tp *.toc *.pg gnus.latexi *.aux *.[cgk]idx \
50 gnus.ilg gnus.ind gnus.[cgk]ind gnus.idx \
51 gnus.tmptexi *.tmplatexi gnus.tmplatexi1 texput.log *.orig *.rej \
52 gnus.latexi*~* tmp/*.ps xface.tex picons.tex smiley.tex *.latexi
55 makeinfo -o gnus gnus.texi
56 makeinfo -o message message.texi
58 texi2latex.elc: texi2latex.el
59 $(EMACS) -batch -l bytecomp --eval '(byte-compile-file \"texi2latex.el\")'
61 latex: gnus.texi texi2latex.elc
62 $(EMACS) -batch -q -no-site-file gnus.texi -l ./texi2latex.elc -f latexi-translate
67 egrep -v "label.*Index|chapter.*Index" gnus.latexi > gnus.tmplatexi1
68 $(LATEX) gnus.tmplatexi1
70 makeindex -o gnus.kind gnus.kidx
71 makeindex -o gnus.cind gnus.cidx
72 makeindex -o gnus.gind gnus.gidx
73 sed 's/\\char 5E\\relax {}/\\symbol{"5E}/' < gnus.kind > gnus.tmpkind
74 mv gnus.tmpkind gnus.kind
75 egrep -v "end{document}" gnus.tmplatexi1 > gnus.tmplatexi
76 cat postamble.tex >> gnus.tmplatexi
77 $(LATEX) gnus.tmplatexi
78 $(LATEX) gnus.tmplatexi
79 $(DVIPS) -t $(PAPERTYPE) -f gnus.dvi > gnus.ps
91 rm -f gnus-manual-a4.ps.gz gnus-manual-standard.ps.gz
93 mv gnus.ps gnus-manual-a4.ps
94 gzip gnus-manual-a4.ps
95 sed 's/,a4paper/,letterpaper/' gnus.latexi > gnus-standard.latexi
96 mv gnus-standard.latexi gnus.latexi
97 make latexps PAPERTYPE=letter
98 mv gnus.ps gnus-manual-standard.ps
99 gzip gnus-manual-standard.ps
102 cp gnus-manual-standard.ps.gz \
103 gnus-manual-a4.ps.gz \
104 /local/ftp/pub/emacs/gnus/manual
105 mv gnus-manual-standard.ps.gz \
106 gnus-manual-a4.ps.gz \
107 /hom/larsi/www_docs/www.gnus.org/documents
111 rm -f gnus.dvi gnus.ps texi2latex.elc
115 rm -f *.orig *.rej *.elc *~ gnus gnus-[0-9] gnus-[0-9][0-9] Makefile
116 rm -f message message-[0-9]
120 $(SHELL) $(top_srcdir)/mkinstalldirs $(infodir)
121 @for file in gnus message emacs-info gnus-ja message-ja; do \
122 for ifile in `echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
123 if test -f $$ifile; then \
124 echo " $(INSTALL_DATA) $$ifile $(infodir)/$$ifile"; \
125 $(INSTALL_DATA) $$ifile $(infodir)/$$ifile; \
131 if [ ! -e tmp ]; then mkdir tmp; fi
141 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
142 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
146 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
149 giftopnm misc/larsi.gif | ppmtopgm | pnmtops -noturn > tmp/larsi.ps
150 tifftopnm misc/eseptember.tif | pnmscale 4 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/september.ps
151 tifftopnm misc/fseptember.tif | pnmscale 2 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/fseptember.ps
152 tifftopnm misc/fred.tif | pnmscale 2 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/fred.ps
153 tifftopnm misc/ered.tif | pnmscale 2 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/red.ps
156 cd etc; for i in gnus-*.xpm; do echo $$i; xpmtoppm $$i | ppmtopgm | pnmdepth 255 | pnmtops -noturn > ../tmp/`basename $$i .xpm`.ps; done
159 cd picons; for i in *.xbm; do echo $$i; xbmtopbm $$i | pnmtops -noturn > ../tmp/picons-`basename $$i .xbm`.ps; done
160 cd picons; for i in *.gif; do echo $$i; giftopnm $$i | ppmtopgm | pnmtops -noturn > ../tmp/picons-`basename $$i .gif`.ps; done
161 for i in tmp/picons-*.ps; do echo "\\gnuspicon{$$i}"; done > picons.tex
164 cd xface; for i in *.gif; do echo $$i; giftopnm $$i | ppmtopgm | pnmtops -noturn > ../tmp/xface-`basename $$i .gif`.ps; done
165 for i in tmp/xface-*.ps; do \
166 if [ -n "$$a" ]; then a=""; echo "{$$i}"; else \
167 a="h"; echo -n "\\gnusxface{$$i}"; fi done > xface.tex; \
168 if [ -n "$$a" ]; then echo "{$$i}" >> xface.tex; fi
171 cd smilies; tifftopnm BigFace.tif | ppmtopgm | pnmtops > ../tmp/BigFace.ps
172 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
173 for i in tmp/smiley-*.ps; do \
174 if [ -n "$$a" ]; then a=""; echo "{$$i}"; else \
175 a="h"; echo -n "\\gnussmiley{$$i}"; fi done > smiley.tex; \
176 if [ -n "$$a" ]; then echo "{$$i}" >> smiley.tex; fi
179 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
186 Makefile: $(srcdir)/Makefile.in ../config.status
188 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
190 # Tell versions [3.59,3.63) of GNU make to not export all variables.
191 # Otherwise a system limit (for SysV at least) may be exceeded.