===================================================================
RCS file: /home/cvs/OpenXM/src/asir-contrib/packages/doc/Attic/Makefile,v
retrieving revision 1.7
retrieving revision 1.20
diff -u -p -r1.7 -r1.20
--- OpenXM/src/asir-contrib/packages/doc/Attic/Makefile	2000/01/17 06:09:32	1.7
+++ OpenXM/src/asir-contrib/packages/doc/Attic/Makefile	2001/12/02 07:43:04	1.20
@@ -1,4 +1,4 @@
-#$OpenXM: OpenXM/src/asir-contrib/packages/doc/Makefile,v 1.6 2000/01/16 22:01:00 takayama Exp $
+#$OpenXM: OpenXM/src/asir-contrib/packages/doc/Makefile,v 1.19 2001/07/11 01:00:22 takayama Exp $
 # targets
 # all :   
 #        Extracts all tex-info files from ../src/*
@@ -7,6 +7,9 @@
 #        Installing online help to OpenXM/lib/asir/help-*
 # install-document :  all
 #        Copy the documents to OpenXM/doc/asir-contrib
+# install-html-help
+#        Copy html help to OpenXM/doc/asir-contrib
+#
 # NOTE: install-help should be executed after installing asir2000.
 OpenXM_ROOT=../../../../../OpenXM
 ASIRDOC=$(OpenXM_ROOT)/src/asir-doc
@@ -15,77 +18,208 @@ CONTRIB=$(OpenXM_ROOT)/src/asir-contrib/packages/src
 ## PS documents are installed under $(OpenXM_doc)/asir-contrib
 OpenXM_doc=$(OpenXM_ROOT)/doc
 DVIPS=dvips -f
+OXWEAVE= ../../../kxx/oxweave
+TEXI2HTML=texi2html -menu -split_node
 
-JPSRCS= oxxm.texi oxmath.texi oxphc.texi oxgnuplot.texi oxsm1.texi oxom.texi
-EGSRCS= oxxm-eg.texi oxmath-eg.texi oxphc-eg.texi oxgnuplot-eg.texi oxsm1-eg.texi oxom-eg.texi
+JPSRCS= oxxm.texi oxmath.texi oxphc.texi oxgnuplot.texi oxsm1.texi oxom.texi dsolv-jp.texi longname-jp.texi oxtigers-jp.texi names-ja.texi hypergeometric-ja.texi number-ja.texi calculus-ja.texi series-ja.texi matrix-ja.texi  graphic-ja.texi print-ja.texi poly-ja.texi complex-ja.texi intro.texi Diff.texi Dmodule.texi Matrix.texi
+EGSRCS= oxxm-eg.texi oxmath-eg.texi oxphc-eg.texi oxgnuplot-eg.texi oxsm1-eg.texi oxom-eg.texi dsolv-eg.texi longname-eg.texi oxtigers-eg.texi names-en.texi hypergeometric-en.texi number-en.texi calculus-en.texi series-en.texi matrix-en.texi  graphic-en.texi print-en.texi poly-en.texi complex-en.texi intro-eg.texi cman-eg.texi
 
 all : $(JPSRCS) $(EGSRCS)
-install : install-document install-help
+install : install-document install-help install-html-help
 
+names-ja.texi : names.oxweave
+	/bin/rm -f names-ja.texi
+	$(OXWEAVE) C ja  <names.oxweave >names-ja.texi
+
+names-en.texi : names.oxweave
+	/bin/rm -f names-en.texi
+	$(OXWEAVE) C en  <names.oxweave >names-en.texi
+
+plucker-ja.texi : plucker.oxweave
+	/bin/rm -f plucker-ja.texi
+	$(OXWEAVE) C ja  <plucker.oxweave >plucker-ja.texi
+
+plucker-en.texi : plucker.oxweave
+	/bin/rm -f plucker-en.texi
+	$(OXWEAVE) C en  <plucker.oxweave >plucker-en.texi
+
+hypergeometric-ja.texi : hypergeometric.oxweave
+	/bin/rm -f hypergeometric-ja.texi
+	$(OXWEAVE) C ja  <hypergeometric.oxweave >hypergeometric-ja.texi
+
+hypergeometric-en.texi : hypergeometric.oxweave
+	/bin/rm -f hypergeometric-en.texi
+	$(OXWEAVE) C en  <hypergeometric.oxweave >hypergeometric-en.texi
+
+number-ja.texi : number.oxweave
+	/bin/rm -f number-ja.texi
+	$(OXWEAVE) C ja  <number.oxweave >number-ja.texi
+
+number-en.texi : number.oxweave
+	/bin/rm -f number-en.texi
+	$(OXWEAVE) C en  <number.oxweave >number-en.texi
+
+calculus-ja.texi : calculus.oxweave
+	/bin/rm -f calculus-ja.texi
+	$(OXWEAVE) C ja  <calculus.oxweave >calculus-ja.texi
+
+calculus-en.texi : calculus.oxweave
+	/bin/rm -f calculus-en.texi
+	$(OXWEAVE) C en  <calculus.oxweave >calculus-en.texi
+
+series-ja.texi : series.oxweave
+	/bin/rm -f series-ja.texi
+	$(OXWEAVE) C ja  <series.oxweave >series-ja.texi
+
+series-en.texi : series.oxweave
+	/bin/rm -f series-en.texi
+	$(OXWEAVE) C en  <series.oxweave >series-en.texi
+
+matrix-ja.texi : matrix.oxweave
+	/bin/rm -f matrix-ja.texi
+	$(OXWEAVE) C ja  <matrix.oxweave >matrix-ja.texi
+
+matrix-en.texi : matrix.oxweave
+	/bin/rm -f matrix-en.texi
+	$(OXWEAVE) C en  <matrix.oxweave >matrix-en.texi
+
+graphic-ja.texi : graphic.oxweave
+	/bin/rm -f graphic-ja.texi
+	$(OXWEAVE) C ja  <graphic.oxweave >graphic-ja.texi
+
+graphic-en.texi : graphic.oxweave
+	/bin/rm -f graphic-en.texi
+	$(OXWEAVE) C en  <graphic.oxweave >graphic-en.texi
+
+print-ja.texi : print.oxweave
+	/bin/rm -f print-ja.texi
+	$(OXWEAVE) C ja  <print.oxweave >print-ja.texi
+
+print-en.texi : print.oxweave
+	/bin/rm -f print-en.texi
+	$(OXWEAVE) C en  <print.oxweave >print-en.texi
+
+poly-ja.texi : poly.oxweave
+	/bin/rm -f poly-ja.texi
+	$(OXWEAVE) C ja  <poly.oxweave >poly-ja.texi
+
+poly-en.texi : poly.oxweave
+	/bin/rm -f poly-en.texi
+	$(OXWEAVE) C en  <poly.oxweave >poly-en.texi
+
+complex-ja.texi : complex.oxweave
+	/bin/rm -f complex-ja.texi
+	$(OXWEAVE) C ja  <complex.oxweave >complex-ja.texi
+
+complex-en.texi : complex.oxweave
+	/bin/rm -f complex-en.texi
+	$(OXWEAVE) C en  <complex.oxweave >complex-en.texi
+
+
 oxxm.texi : $(ASIRLIB)/xm Makefile
 	/bin/rm -f oxxm.texi
-	oxweave C-texi jp-texi  <$(ASIRLIB)/xm >oxxm.texi
+	$(OXWEAVE) C-texi jp-texi  <$(ASIRLIB)/xm >oxxm.texi
 
 oxxm-eg.texi : $(ASIRLIB)/xm Makefile
 	/bin/rm -f oxxm-eg.texi
-	oxweave C-texi eg-texi  <$(ASIRLIB)/xm >oxxm-eg.texi
+	$(OXWEAVE) C-texi eg-texi  <$(ASIRLIB)/xm >oxxm-eg.texi
 
 oxmath.texi : $(CONTRIB)/m Makefile
 	/bin/rm -f oxmath.texi
-	oxweave C-texi jp-texi  <$(CONTRIB)/m >oxmath.texi
+	$(OXWEAVE) C-texi jp-texi  <$(CONTRIB)/m >oxmath.texi
 
 oxmath-eg.texi : $(CONTRIB)/m Makefile
 	/bin/rm -f oxmath-eg.texi
-	oxweave C-texi eg-texi  <$(CONTRIB)/m >oxmath-eg.texi
+	$(OXWEAVE) C-texi eg-texi  <$(CONTRIB)/m >oxmath-eg.texi
 
 oxphc.texi : $(CONTRIB)/phc Makefile
 	/bin/rm -f oxphc.texi
-	oxweave C-texi jp-texi  <$(CONTRIB)/phc >oxphc.texi
+	$(OXWEAVE) C-texi jp-texi  <$(CONTRIB)/phc >oxphc.texi
 
 oxphc-eg.texi : $(CONTRIB)/phc Makefile
 	/bin/rm -f oxphc-eg.texi
-	oxweave C-texi eg-texi  <$(CONTRIB)/phc >oxphc-eg.texi
+	$(OXWEAVE) C-texi eg-texi  <$(CONTRIB)/phc >oxphc-eg.texi
 
 oxgnuplot.texi : $(CONTRIB)/gnuplot Makefile
 	/bin/rm -f oxgnuplot.texi
-	oxweave C-texi jp-texi  <$(CONTRIB)/gnuplot >oxgnuplot.texi
+	$(OXWEAVE) C-texi jp-texi  <$(CONTRIB)/gnuplot >oxgnuplot.texi
 
 oxgnuplot-eg.texi : $(CONTRIB)/gnuplot Makefile
 	/bin/rm -f oxgnuplot-eg.texi
-	oxweave C-texi eg-texi  <$(CONTRIB)/gnuplot >oxgnuplot-eg.texi
+	$(OXWEAVE) C-texi eg-texi  <$(CONTRIB)/gnuplot >oxgnuplot-eg.texi
 
-oxsm1.texi : $(CONTRIB)/sm1 Makefile
+oxsm1.texi : sm1.oxweave Makefile
 	/bin/rm -f oxsm1.texi
-	oxweave C-texi jp-texi  <$(CONTRIB)/sm1 >oxsm1.texi
+	$(OXWEAVE) C-texi jp-texi  <sm1.oxweave >oxsm1.texi
 
-oxsm1-eg.texi : $(CONTRIB)/sm1 Makefile
+oxsm1-eg.texi : sm1.oxweave Makefile
 	/bin/rm -f oxsm1-eg.texi
-	oxweave C-texi eg-texi  <$(CONTRIB)/sm1 >oxsm1-eg.texi
+	$(OXWEAVE) C-texi eg-texi  <sm1.oxweave >oxsm1-eg.texi
 
 oxom.texi : $(CONTRIB)/om Makefile
 	/bin/rm -f oxom.texi
-	oxweave C-texi jp-texi  <$(CONTRIB)/om >oxom.texi
+	$(OXWEAVE) C-texi jp-texi  <$(CONTRIB)/om >oxom.texi
 
 oxom-eg.texi : $(CONTRIB)/om Makefile
 	/bin/rm -f oxom-eg.texi
-	oxweave C-texi eg-texi  <$(CONTRIB)/om >oxom-eg.texi
+	$(OXWEAVE) C-texi eg-texi  <$(CONTRIB)/om >oxom-eg.texi
 
-help-eg: $(EGSRCS) $(ASIRDOC)/extract_func
+dsolv-jp.texi : dsolv.oxweave Makefile
+	/bin/rm -f dsolv-jp.texi
+	$(OXWEAVE) C-texi jp-texi  <dsolv.oxweave >dsolv-jp.texi
+
+dsolv-eg.texi : dsolv.oxweave Makefile
+	/bin/rm -f dsolv-eg.texi
+	$(OXWEAVE) C-texi eg-texi  <dsolv.oxweave >dsolv-eg.texi
+
+longname-jp.texi : $(CONTRIB)/longname Makefile
+	/bin/rm -f longname-jp.texi
+	$(OXWEAVE) C-texi jp-texi  <$(CONTRIB)/longname >longname-jp.texi
+
+longname-eg.texi : $(CONTRIB)/longname Makefile
+	/bin/rm -f longname-eg.texi
+	$(OXWEAVE) C-texi eg-texi  <$(CONTRIB)/longname >longname-eg.texi
+
+oxtigers-jp.texi : $(CONTRIB)/tigers Makefile
+	/bin/rm -f oxtigers-jp.texi
+	$(OXWEAVE) C-texi jp-texi  <$(CONTRIB)/tigers >oxtigers-jp.texi
+
+oxtigers-eg.texi : $(CONTRIB)/tigers Makefile
+	/bin/rm -f oxtigers-eg.texi
+	$(OXWEAVE) C-texi eg-texi  <$(CONTRIB)/tigers >oxtigers-eg.texi
+
+gen-help-eg: $(EGSRCS) $(ASIRDOC)/extract_func
 	-rm -rf tmp help-eg
 	mkdir help-eg tmp
 	cp cman-eg.texi $(EGSRCS) tmp
 	-(cd tmp; makeinfo --force cman-eg.texi)
 	(cd help-eg; for i in ../tmp/asir-contrib*; do ../$(ASIRDOC)/extract_func $$i; done)
+## duplicate some help files
+	-(cd help-eg; cp sm1_hilbert hilbert_polynomial)
 
-help-jp: $(JPSRCS) $(ASIRDOC)/extract_func
-	-rm -rf tmp help-jp
-	mkdir help-jp tmp
-	for i in cman.texi $(JPSRCS); do nkf -e $$i > tmp/$$i; done
-	-(cd tmp; makeinfo --force cman.texi)
-	(cd help-jp; for i in ../tmp/asir-contrib*; do ../$(ASIRDOC)/extract_func $$i; done)
+gen-help-jp: $(JPSRCS) $(ASIRDOC)/extract_func
+	-rm -rf tmp-ja help-jp
+	mkdir help-jp tmp-ja
+	for i in cman.texi $(JPSRCS); do nkf -e $$i > tmp-ja/$$i; done
+	-(cd tmp-ja; makeinfo --force cman.texi)
+	(cd help-jp; for i in ../tmp-ja/asir-contrib*; do ../$(ASIRDOC)/extract_func -j $$i; done)
+## duplicate some help files
+	-(cd help-jp; cp sm1_hilbert hilbert_polynomial)
 
-help: help-eg help-jp
+gen-html-en: gen-help-eg
+	-rm -rf html-en
+	-mkdir html-en
+	-cp tmp/*.texi html-en
+	-(cd html-en; ${TEXI2HTML} cman-eg.texi)
 
+gen-html-ja: gen-help-jp
+	-mkdir html-ja
+	-cp tmp-ja/*.texi html-ja
+	-cp tmp-ja/cman.texi html-ja/cman-ja.texi
+	-(cd html-ja; ${TEXI2HTML} cman-ja.texi)
+
+help: gen-help-eg gen-help-jp
+
 install-help: help
 	/bin/rm -rf $(OpenXM_ROOT)/lib/asir/help-jp/xm.help
 	mkdir $(OpenXM_ROOT)/lib/asir/help-jp/xm.help
@@ -94,12 +228,18 @@ install-help: help
 	mkdir $(OpenXM_ROOT)/lib/asir/help-eg/xm.help
 	-cp -f help-eg/* $(OpenXM_ROOT)/lib/asir/help-eg/xm.help
 
+install-html-help: gen-html-en gen-html-ja
+	-( tar cf - html-en | (cd $(OpenXM_doc)/asir-contrib ; tar xf -))
+	-( tar cf - html-ja | (cd $(OpenXM_doc)/asir-contrib ; tar xf -))
+
 install-document : all clean-document
 	-ptex cman.texi
 	-ptex cman.texi
+	-cp cman.dvi $(OpenXM_doc)/asir-contrib/cman-jp.dvi
 	-$(DVIPS) cman >$(OpenXM_doc)/asir-contrib/cman-jp.ps
 	-tex cman-eg.texi
 	-tex cman-eg.texi
+	-cp cman-eg.dvi $(OpenXM_doc)/asir-contrib/cman-eg.dvi
 	-$(DVIPS) cman-eg >$(OpenXM_doc)/asir-contrib/cman-eg.ps
 
 
@@ -110,5 +250,5 @@ clean-document :
 
 
 clean :
-	/bin/rm -f oxxm.texi oxxm-eg.texi oxmath.texi *~ *.aux *.cp *.dvi *.fn *.ky *.log *.pg *.toc *.tp *.vr oxmath-eg.texi oxphc.texi oxphc-eg.texi oxgnuplot.texi oxgnuplot-eg.texi oxsm1.texi oxsm1-eg.texi oxom-eg.texi oxom.texi
-	/bin/rm -rf help-jp help-eg tmp
+	/bin/rm -f oxxm.texi oxxm-eg.texi oxmath.texi *~ *.aux *.cp *.dvi *.fn *.ky *.log *.pg *.toc *.tp *.vr oxmath-eg.texi oxphc.texi oxphc-eg.texi oxgnuplot.texi oxgnuplot-eg.texi oxsm1.texi oxsm1-eg.texi oxom-eg.texi oxom.texi dsolv-jp.texi dsolv-eg.texi longname-jp.texi longname-eg.texi oxtigers-jp.texi oxtigers-eg.texi names-ja.texi names-en.texi hypergeometric-ja.texi hypergeometric-en.texi number-en.texi number-ja.texi calculus-en.texi calculus-ja.texi series-en.texi series-ja.texi matrix-en.texi matrix-ja.texi graphic-en.texi graphic-ja.texi print-en.texi print-ja.texi poly-en.texi poly-ja.texi complex-en.texi complex-ja.texi plucker-ja.texi plucker-en.texi
+	/bin/rm -rf help-jp help-eg tmp tmp-ja html-en html-ja