===================================================================
RCS file: /home/cvs/OpenXM/src/asir-contrib/packages/doc/M/Makefile.in,v
retrieving revision 1.6
retrieving revision 1.10
diff -u -p -r1.6 -r1.10
--- OpenXM/src/asir-contrib/packages/doc/M/Makefile.in	2009/02/21 22:09:11	1.6
+++ OpenXM/src/asir-contrib/packages/doc/M/Makefile.in	2017/08/31 06:31:44	1.10
@@ -1,10 +1,10 @@
-# $OpenXM: OpenXM/src/asir-contrib/packages/doc/M/Makefile.in,v 1.5 2009/02/20 03:05:26 takayama Exp $
+# $OpenXM: OpenXM/src/asir-contrib/packages/doc/M/Makefile.in,v 1.9 2017/03/30 06:16:36 takayama Exp $
 # Original file was ../Makefile.common
 # Targets
 # gen-texi : generating texi files.
 # gen-html : generating HTML documents under html-{ja,en}
 # gen-help : generating online help files under help-{ja,en}
-# gen-pdf  : generating dvi, ps, pdf files here.
+# gen-pdf  : generating dvi and pdf files here.
 #
 # install-help
 #        Installing online help to OpenXM/lib/asir/help-{ja,en}/xm.help
@@ -44,7 +44,8 @@ ASIRDOC=${OpenXM_ROOT}/src/asir-doc
 ASIRLIB=${OpenXM_ROOT}/../OpenXM_contrib2/asir2000/lib
 CONTRIB=${OpenXM_ROOT}/src/asir-contrib/packages/src
 EXTRACT_FUNC=${ASIRDOC}/extract_func
-PTEX=@PTEX@ -kanji=euc
+PTEX=@PTEX@
+TEX=@TEX@
 DVIPDF=@DVIPDF@
 MAKEINFO=@MAKEINFO@
 #
@@ -52,9 +53,9 @@ OPTGENTEXI= --include
 #OPTGENTEXI= --include --example
 ## PS documents are installed under ${OpenXM_doc}/asir-contrib
 DVIPS=dvips -f
-TEXI2HTML=texi2html -menu
+TEXI2HTML=${ASIRDOC}/texi2html -menu
 RM=rm -f
-NKF=nkf
+NKF=nkf -w
 
 # source files
 SRC_TEXI = ${MYNAME}-en.texi ${MYNAME}-ja.texi
@@ -66,10 +67,10 @@ SRC_LANG = ${MYNAME}.en ${MYNAME}.ja
 	${OXWEAVE} C en < $< > ${<:.oxw=.en}
 
 .oxw.ja:
-	${OXWEAVE} C ja < $< | ${NKF} -e > ${<:.oxw=.ja}
+	${OXWEAVE} C ja < $< | ${NKF} -w > ${<:.oxw=.ja}
 
 .dvi.pdf:
-	${DVIPDF} $<
+	@echo "xetex has already generated PDF files."
 
 .dvi.ps:
 	${DVIPS} $< > ${<:.dvi=.ps}
@@ -83,6 +84,8 @@ all: gen-document
 ${MYNAME}-ja.dvi: ${MYNAME}.ja
 ${MYNAME}-en.dvi: ${MYNAME}.en
 
+gen-pdf: ${SRC_TEXI:.texi=.pdf}
+
 gen-document: gen-html
 	-if [ ! -f ./.build_doc_done ]; then \
 		${MAKE} ${SRC_TEXI:.texi=.pdf} ; \
@@ -130,7 +133,7 @@ install-document: gen-document
 		for j in ${LANGUAGES} ; do \
 			mkdir -p "${DOCDIR}/$$j/${MYNAME}-html" ; \
 			(cd html-$$j; tar cf - .) | (cd "${DOCDIR}/$$j/${MYNAME}-html" ; tar xf -) ; \
-			${INSTALL_DATA} ${MYNAME}-$$j.dvi ${MYNAME}-$$j.ps ${MYNAME}-$$j.pdf ${DOCDIR}/$$j/ ; \
+			${INSTALL_DATA} ${MYNAME}-$$j.dvi ${MYNAME}-$$j.pdf ${DOCDIR}/$$j/ ; \
 		done ; \
 		touch ./.install_doc_done ; \
 	fi