+@SET_MAKE@
+DVIPDFMX=@DVIPDFMX@
EMACS=@EMACS@
EMACSINFO=$(EMACS) -batch -q -no-site-file -l infohack.el -f batch-makeinfo
INFO_DEPS=gnus-ja.info message-ja.info emacs-mime-ja.info\
INSTALL_DATA=@INSTALL_DATA@
INSTALL_INFO=install-info
JBIBTEX=@JBIBTEX@
+PDVIPS=@PDVIPS@
PTEX=@PTEX@
SHELL=/bin/sh
TEXI2DVI=@TEXI2DVI@
-prefix=@prefix@
infodir=@infodir@
+prefix=@prefix@
-.SUFFIXES: .texi
+.SUFFIXES: .pdf .ps .texi
all: $(INFO_DEPS)
env TEX=$(PTEX) BIBTEX=$(JBIBTEX) $(TEXI2DVI) -l ja -o $@ gnustmp.texi
rm -f gnustmp.*
+pdf: gnus-ja.pdf message-ja.pdf emacs-mime-ja.pdf\
+ pgg-ja.pdf sasl-ja.pdf sieve-ja.pdf gnus-coding-ja.pdf
+
+.texi.pdf:
+ i=`basename $@ .pdf`; $(MAKE) $$i.dvi; $(DVIPDFMX) $$i
+
+ps: gnus-ja.ps message-ja.ps emacs-mime-ja.ps\
+ pgg-ja.ps sasl-ja.ps sieve-ja.ps gnus-coding-ja.ps
+
+.texi.ps:
+ i=`basename $@ .ps`; $(MAKE) $$i.dvi; $(PDVIPS) $$i
+
clean:
- rm -f *.dvi *.info *.info-[0-9] *.info-[0-9][0-9] *.orig *~\
- gnustmp.* missfont.log
+ rm -f *.dvi *.info *.info-[0-9] *.info-[0-9][0-9] *.orig *.pdf *.ps *~\
+ gnustmp.* missfont.log
distclean: clean
rm -fr autom4te.cache
AC_INIT(gnus-ja.texi)
+AC_SET_MAKE
AC_PROG_INSTALL
dnl Apparently, if you run a shell window in Emacs, it sets the EMACS
fi
AC_ARG_WITH(emacs,[ --with-emacs Use Emacs to build],
- [ if test "${withval}" = "yes"; then EMACS=emacs; else EMACS=${withval}; fi ])
+ [ if test "${withval}" = "yes"; then EMACS=emacs; else EMACS=${withval}; fi ])
AC_CHECK_PROG(EMACS, emacs, emacs, xemacs)
+AC_CHECK_PROG(DVIPDFMX, dvipdfmx, dvipdfmx, false)
AC_CHECK_PROG(JBIBTEX, jbibtex, jbibtex, false)
+AC_CHECK_PROG(PDVIPS, pdvips, pdvips, false)
AC_CHECK_PROG(PTEX, ptex, ptex, false)
AC_CHECK_PROG(TEXI2DVI, texi2dvi, texi2dvi, false)