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@
22 most: texi2latex.elc latex latexps
24 .SUFFIXES: .texi .dvi .ps
27 if test $(MAKEINFO) = no; then \
28 $(EMACSINFO) -eval '(find-file "$<")' $(XINFOSWI); \
33 dvi: gnus.dvi message.dvi refcard.dvi
36 $(PERL) -n -e 'print unless (/\@iflatex/ .. /\@end iflatex/)' $< > gnustmp.texi
37 $(TEXI2DVI) gnustmp.texi
41 refcard.dvi: refcard.tex gnuslogo.refcard gnusref.tex
45 rm -f gnus.*.bak *.ky *.cp *.fn *.cps *.kys *.log *.aux *.dvi *.vr \
46 *.tp *.toc *.pg gnus.latexi *.aux *.[cgk]idx \
47 gnus.ilg gnus.ind gnus.[cgk]ind gnus.idx \
48 gnus.tmptexi *.tmplatexi gnus.tmplatexi1 texput.log *.orig *.rej \
49 gnus.latexi*~* tmp/*.ps xface.tex picons.tex smiley.tex *.latexi
52 makeinfo -o gnus gnus.texi
53 makeinfo -o message message.texi
55 texi2latex.elc: texi2latex.el
56 $(EMACS) -batch -l bytecomp --eval '(byte-compile-file "texi2latex.el")'
58 latex: gnus.texi texi2latex.elc
59 $(EMACS) -batch -q -no-site-file gnus.texi -l ./texi2latex.elc -f latexi-translate
64 egrep -v "label.*Index|chapter.*Index" gnus.latexi > gnus.tmplatexi1
65 $(LATEX) gnus.tmplatexi1
67 makeindex -o gnus.kind gnus.kidx
68 makeindex -o gnus.cind gnus.cidx
69 makeindex -o gnus.gind gnus.gidx
70 sed 's/\\char 5E\\relax {}/\\symbol{"5E}/' < gnus.kind > gnus.tmpkind
71 mv gnus.tmpkind gnus.kind
72 egrep -v "end{document}" gnus.tmplatexi1 > gnus.tmplatexi
73 cat postamble.tex >> gnus.tmplatexi
74 $(LATEX) gnus.tmplatexi
75 $(LATEX) gnus.tmplatexi
76 $(DVIPS) -f gnus.dvi > gnus.ps
88 rm -f gnus-manual-a4.ps.gz gnus-manual-standard.ps.gz
90 mv /local/tmp/larsi/gnus.ps /local/tmp/larsi/gnus-manual-a4.ps
91 gzip /local/tmp/larsi/gnus-manual-a4.ps
92 sed 's/,a4paper//' gnus.latexi > gnus-standard.latexi
93 mv gnus-standard.latexi gnus.latexi
95 mv /local/tmp/larsi/gnus.ps /local/tmp/larsi/gnus-manual-standard.ps
96 gzip /local/tmp/larsi/gnus-manual-standard.ps
99 cp /local/tmp/larsi/gnus-manual-standard.ps.gz \
100 /local/tmp/larsi/gnus-manual-a4.ps.gz \
101 /local/ftp/pub/emacs/gnus/manual
102 mv /local/tmp/larsi/gnus-manual-standard.ps.gz \
103 /local/tmp/larsi/gnus-manual-a4.ps.gz \
104 /hom/larsi/www_docs/www.gnus.org/documents
108 rm -f gnus.dvi gnus.ps
112 rm -f *.orig *.rej *.elc *~ gnus gnus-[0-9] gnus-[0-9][0-9] Makefile
113 rm -f message message-[0-9]
116 $(SHELL) $(top_srcdir)/mkinstalldirs $(infodir)
117 @for file in gnus message; do \
118 for ifile in `echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
119 if test -f $$ifile; then \
120 echo " $(INSTALL_DATA) $$ifile $(infodir)/$$ifile"; \
121 $(INSTALL_DATA) $$ifile $(infodir)/$$ifile; \
127 if [ ! -e tmp ]; then mkdir tmp; fi
137 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
138 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
142 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
145 giftopnm misc/larsi.gif | ppmtopgm | pnmtops -noturn > tmp/larsi.ps
146 tifftopnm misc/eseptember.tif | pnmscale 4 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/september.ps
147 tifftopnm misc/fseptember.tif | pnmscale 2 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/fseptember.ps
148 tifftopnm misc/fred.tif | pnmscale 2 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/fred.ps
149 tifftopnm misc/ered.tif | pnmscale 2 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/red.ps
152 cd etc; for i in gnus-*.xpm; do echo $$i; xpmtoppm $$i | ppmtopgm | pnmdepth 255 | pnmtops -noturn > ../tmp/`basename $$i .xpm`.ps; done
155 cd picons; for i in *.xbm; do echo $$i; xbmtopbm $$i | pnmtops -noturn > ../tmp/picons-`basename $$i .xbm`.ps; done
156 cd picons; for i in *.gif; do echo $$i; giftopnm $$i | ppmtopgm | pnmtops -noturn > ../tmp/picons-`basename $$i .gif`.ps; done
157 for i in tmp/picons-*.ps; do echo "\\gnuspicon{$$i}"; done > picons.tex
160 cd xface; for i in *.gif; do echo $$i; giftopnm $$i | ppmtopgm | pnmtops -noturn > ../tmp/xface-`basename $$i .gif`.ps; done
161 for i in tmp/xface-*.ps; do \
162 if [ -n "$$a" ]; then a=""; echo "{$$i}"; else \
163 a="h"; echo -n "\\gnusxface{$$i}"; fi done > xface.tex; \
164 if [ -n "$$a" ]; then echo "{$$i}" >> xface.tex; fi
167 cd smilies; tifftopnm BigFace.tif | ppmtopgm | pnmtops > ../tmp/BigFace.ps
168 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
169 for i in tmp/smiley-*.ps; do \
170 if [ -n "$$a" ]; then a=""; echo "{$$i}"; else \
171 a="h"; echo -n "\\gnussmiley{$$i}"; fi done > smiley.tex; \
172 if [ -n "$$a" ]; then echo "{$$i}" >> smiley.tex; fi
175 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
182 Makefile: $(srcdir)/Makefile.in ../config.status
184 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
186 # Tell versions [3.59,3.63) of GNU make to not export all variables.
187 # Otherwise a system limit (for SysV at least) may be exceeded.