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