5 top_srcdir = @top_srcdir@
13 EMACSINFO=$(EMACS) -batch -q -no-site-file
14 INFOSWI=-l ./dgnushack.el -f dgnushack-texi-format
15 XINFOSWI=-l ./dgnushack.el -f dgnushack-texi-add-suffix-and-format
16 EMACSINFOHACK=-eval '(while (re-search-forward "@\\(end \\)?ifnottex" nil t) (replace-match ""))'
21 INSTALL_DATA = @INSTALL_DATA@
24 INFO_DEPS=gnus message emacs-mime
25 INFO_DEPS_JA=gnus-ja message-ja
26 INFO_DEPS_INFO=gnus.info message.info emacs-mime.info
27 INFO_DEPS_JA_INFO=gnus-ja.info message-ja.info
30 all-info: $(INFO_DEPS_INFO)
32 gnus.info: gnus.texi gnus-faq.texi
33 message.info: message.texi
34 emacs-mime.info: emacs-mime.texi
37 ja-info: $(INFO_DEPS_JA_INFO)
39 gnus-ja.info: gnus-ja.texi gnus-faq-ja.texi
40 message-ja.info: message-ja.texi
42 most: texi2latex.elc latex latexps
45 cd ../lisp && $(EMACSINFO) -eval '(find-file "$<")' \
46 $(EMACSINFOHACK) $(INFOSWI) ../texi/$<; \
49 cd ../lisp && $(EMACSINFO) -eval '(find-file "$<")' \
50 $(EMACSINFOHACK) $(XINFOSWI) ../texi/$<; \
53 if test $(MAKEINFO) = no; then \
54 cd ../lisp && $(EMACSINFO) -eval '(find-file "$<")' \
55 $(EMACSINFOHACK) $(XINFOSWI) ../texi/$<; \
60 .SUFFIXES: .texi .dvi .ps .pdf
63 if test "x$(MAKEINFO)" != "xno" ; then \
66 cd ../lisp && $(EMACSINFO) -eval '(find-file "$<")' \
67 $(EMACSINFOHACK) $(INFOSWI) ../texi/$<; \
70 dvi: gnus.dvi message.dvi refcard.dvi emacs-mime.dvi
72 pdf: gnus.pdf message.pdf refcard.pdf emacs-mime.pdf
75 sed -e '/@iflatex/,/@end iflatex/d' $< > gnustmp.texi
76 $(TEXI2DVI) gnustmp.texi
81 sed -e '/@iflatex/,/@end iflatex/d' $< > gnustmp.texi
82 $(TEXI2PDF) gnustmp.texi
86 refcard.dvi: refcard.tex gnuslogo.refcard gnusref.tex
90 refcard.pdf: refcard.tex gnuslogo.refcard gnusref.tex
91 epstopdf gnuslogo.refcard --outfile=gnuslogo.refcard.pdf
92 $(PDFLATEX) refcard.tex
95 rm -f *.orig *.rej *.elc *~ gnus-[0-9] gnus-[0-9][0-9]
98 rm -f gnus-ja-[0-9] gnus-ja-[0-9][0-9]
99 rm -f message-ja-[0-9]
100 rm -f $(INFO_DEPS_JA)
101 rm -f gnus.info-[0-9] gnus.info-[0-9][0-9]
102 rm -f message.info-[0-9]
103 rm -f $(INFO_DEPS_INFO)
104 rm -f gnus-ja.info-[0-9] gnus-ja.info-[0-9][0-9]
105 rm -f message-ja.info-[0-9]
106 rm -f $(INFO_DEPS_JA_INFO)
109 makeinfo -o gnus gnus.texi
110 makeinfo -o message message.texi
112 texi2latex.elc: texi2latex.el
113 $(EMACSINFO) -batch -l bytecomp --eval '(byte-compile-file "texi2latex.el")'
115 latex: gnus.texi texi2latex.elc
116 $(EMACSINFO) -batch -q -no-site-file gnus.texi -l ./texi2latex.elc -f latexi-translate
119 $(MAKE) texi2latex.elc
121 egrep -v "label.*Index|chapter.*Index" gnus.latexi > gnus.tmplatexi1
122 $(LATEX) gnus.tmplatexi1
124 makeindex -o gnus.kind gnus.kidx
125 makeindex -o gnus.cind gnus.cidx
126 makeindex -o gnus.gind gnus.gidx
127 sed 's/\\char 5E\\relax {}/\\symbol{"5E}/' < gnus.kind > gnus.tmpkind
128 mv gnus.tmpkind gnus.kind
129 egrep -v "end{document}" gnus.tmplatexi1 > gnus.tmplatexi
130 cat postamble.tex >> gnus.tmplatexi
131 $(LATEX) gnus.tmplatexi
132 $(LATEX) gnus.tmplatexi
133 $(DVIPS) -t $(PAPERTYPE) -f gnus.dvi > gnus.ps
145 rm -f gnus-manual-a4.ps.gz gnus-manual-standard.ps.gz
147 mv gnus.ps gnus-manual-a4.ps
148 gzip gnus-manual-a4.ps
149 sed 's/,a4paper/,letterpaper/' gnus.latexi > gnus-standard.latexi
150 mv gnus-standard.latexi gnus.latexi
151 $(MAKE) latexps PAPERTYPE=letter
152 mv gnus.ps gnus-manual-standard.ps
153 gzip gnus-manual-standard.ps
156 cp gnus-manual-standard.ps.gz \
157 gnus-manual-a4.ps.gz \
158 /local/ftp/pub/emacs/gnus/manual
159 mv gnus-manual-standard.ps.gz \
160 gnus-manual-a4.ps.gz \
161 /hom/larsi/www_docs/www.gnus.org/documents
164 rm -f gnus.dvi gnus.ps texi2latex.elc
169 install: $(INFO_DEPS)
170 $(SHELL) $(top_srcdir)/mkinstalldirs $(infodir)
171 @list='$(INFO_DEPS)'; \
172 for file in $$list; do \
174 for ifile in `CDPATH=: && cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
175 if test -f $$d/$$ifile; then \
176 echo " $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile"; \
177 $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile; \
181 @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
182 list='$(INFO_DEPS)'; \
183 for file in $$list; do \
184 echo " install-info --info-dir=$(infodir) $(infodir)/$$file";\
185 install-info --info-dir=$(infodir) $(infodir)/$$file || :;\
189 install-ja: $(INFO_DEPS_JA)
190 $(MAKE) INFO_DEPS='$(INFO_DEPS_JA)' EMACS="$(EMACS)" \
191 infodir="$(infodir)" install
193 install-info: $(INFO_DEPS_INFO)
194 $(MAKE) INFO_DEPS='$(INFO_DEPS_INFO)' EMACS="$(EMACS)" \
195 infodir="$(infodir)" install
197 install-ja-info: $(INFO_DEPS_JA_INFO)
198 $(MAKE) INFO_DEPS='$(INFO_DEPS_JA_INFO)' EMACS="$(EMACS)" \
199 infodir="$(infodir)" install
202 if [ ! -e tmp ]; then mkdir tmp; fi
212 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
213 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
217 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
220 giftopnm misc/larsi.gif | ppmtopgm | pnmtops -noturn > tmp/larsi.ps
221 tifftopnm misc/eseptember.tif | pnmscale 4 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/september.ps
222 tifftopnm misc/fseptember.tif | pnmscale 2 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/fseptember.ps
223 tifftopnm misc/fred.tif | pnmscale 2 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/fred.ps
224 tifftopnm misc/ered.tif | pnmscale 2 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/red.ps
227 cd etc; for i in gnus-*.xpm; do echo $$i; xpmtoppm $$i | ppmtopgm | pnmdepth 255 | pnmtops -noturn > ../tmp/`basename $$i .xpm`.ps; done
230 cd picons; for i in *.xbm; do echo $$i; xbmtopbm $$i | pnmtops -noturn > ../tmp/picons-`basename $$i .xbm`.ps; done
231 cd picons; for i in *.gif; do echo $$i; giftopnm $$i | ppmtopgm | pnmtops -noturn > ../tmp/picons-`basename $$i .gif`.ps; done
232 for i in tmp/picons-*.ps; do echo "\\gnuspicon{$$i}"; done > picons.tex
235 cd xface; for i in *.gif; do echo $$i; giftopnm $$i | ppmtopgm | pnmtops -noturn > ../tmp/xface-`basename $$i .gif`.ps; done
236 for i in tmp/xface-*.ps; do \
237 if [ -n "$$a" ]; then a=""; echo "{$$i}"; else \
238 a="h"; echo -n "\\gnusxface{$$i}"; fi done > xface.tex; \
239 if [ -n "$$a" ]; then echo "{$$i}" >> xface.tex; fi
242 cd smilies; tifftopnm BigFace.tif | ppmtopgm | pnmtops > ../tmp/BigFace.ps
243 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
244 for i in tmp/smiley-*.ps; do \
245 if [ -n "$$a" ]; then a=""; echo "{$$i}"; else \
246 a="h"; echo -n "\\gnussmiley{$$i}"; fi done > smiley.tex; \
247 if [ -n "$$a" ]; then echo "{$$i}" >> smiley.tex; fi
250 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
253 $(MAKE) texi2latex.elc
257 Makefile: $(srcdir)/Makefile.in ../config.status
259 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
261 # Tell versions [3.59,3.63) of GNU make to not export all variables.
262 # Otherwise a system limit (for SysV at least) may be exceeded.