From: yamaoka Date: Thu, 8 Dec 2005 09:08:24 +0000 (+0000) Subject: Support making of PDF and PS files. X-Git-Tag: ngnus-0_4-doc-ja~53 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=4c4841f60b9e312654cf26c2c695b0a920f029b4;p=elisp%2Fgnus-doc-ja.git Support making of PDF and PS files. --- diff --git a/Makefile.in b/Makefile.in index db90656..0f709ab 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,3 +1,5 @@ +@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\ @@ -6,13 +8,14 @@ INSTALL=@INSTALL@ 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) @@ -49,9 +52,21 @@ dvi: gnus-ja.dvi message-ja.dvi emacs-mime-ja.dvi\ 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 diff --git a/configure.ac b/configure.ac index 884e2ca..4a44479 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,5 @@ 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 @@ -8,10 +9,12 @@ if test "${EMACS}" = "t"; then 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)