===================================================================
RCS file: /home/cvs/OpenXM/src/asir-contrib/packages/doc/Attic/Makefile,v
retrieving revision 1.44
retrieving revision 1.52
diff -u -p -r1.44 -r1.52
--- OpenXM/src/asir-contrib/packages/doc/Attic/Makefile	2003/05/18 09:57:33	1.44
+++ OpenXM/src/asir-contrib/packages/doc/Attic/Makefile	2004/03/05 14:43:36	1.52
@@ -1,8 +1,8 @@
-#$OpenXM: OpenXM/src/asir-contrib/packages/doc/Makefile,v 1.43 2003/05/18 00:13:15 takayama Exp $
+#$OpenXM: OpenXM/src/asir-contrib/packages/doc/Makefile,v 1.51 2004/02/23 11:38:36 takayama Exp $
 # targets
 # all :   
 #     Extracts all tex-info files from ../src/* and generate *.texi files.
-# install : install-document install-help
+# install : install-help
 # install-help : all
 #        Installing online help to OpenXM/lib/asir/help-*
 # install-document :  all  gen-dvi-ps
@@ -11,6 +11,8 @@
 #        Copy html help to OpenXM/doc/asir-contrib
 # gen-html-en  gen-html-ja
 #        Generate HTML documents under html-en and html-ja
+# gen-help-en  gen-help-ja
+#        Generate help files.
 # gen-dvi-ps
 #        Generate dvi and ps files.
 #
@@ -39,12 +41,12 @@ OPTGENTEXI= --include 
 ## PS documents are installed under $(OpenXM_doc)/asir-contrib
 OpenXM_doc=$(OpenXM_ROOT)/doc
 DVIPS=dvips -f
-OXWEAVE= ../../../kxx/oxweave
+OXWEAVE=$(OpenXM_ROOT)/bin/oxweave
 TEXI2HTML=texi2html -menu -split_node
 RM=rm
 
-JPSRCS= opening.texi oxrfc100-ja.texi oxmath-ja.texi oxphc-ja.texi oxgnuplot-ja.texi oxsm1-ja.texi oxom-ja.texi dsolv-ja.texi oxtigers-ja.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-ja.texi Diff-ja.texi Dmodule-ja.texi  base-ja.texi misc-ja.texi glib-ja.texi pfp-ja.texi plucker-ja.texi windows-ja.texi util-ja.texi
-EGSRCS= opening.texi oxrfc100-en.texi oxmath-en.texi oxphc-en.texi oxgnuplot-en.texi oxsm1-en.texi oxom-en.texi dsolv-en.texi oxtigers-en.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-en.texi cman-en.texi base-en.texi misc-en.texi glib-en.texi pfp-en.texi plucker-en.texi windows-en.texi util-en.texi
+JPSRCS= opening.texi oxrfc100-ja.texi oxmath-ja.texi oxphc-ja.texi oxgnuplot-ja.texi oxsm1-ja.texi oxom-ja.texi dsolv-ja.texi oxtigers-ja.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-ja.texi Diff-ja.texi Dmodule-ja.texi  base-ja.texi misc-ja.texi glib-ja.texi pfp-ja.texi plucker-ja.texi windows-ja.texi util-ja.texi 
+EGSRCS= opening.texi oxrfc100-en.texi oxmath-en.texi oxphc-en.texi oxgnuplot-en.texi oxsm1-en.texi oxom-en.texi dsolv-en.texi oxtigers-en.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-en.texi cman-en.texi base-en.texi misc-en.texi glib-en.texi pfp-en.texi plucker-en.texi windows-en.texi util-en.texi 
 
 JAAUTO=base-auto-ja.texi pfp-auto-ja.texi poly-auto-ja.texi \
        print-auto-ja.texi matrix-auto-ja.texi glib-auto-ja.texi \
@@ -67,8 +69,18 @@ install :
 		echo "NOTE: Installation is already done. Remove .done_install for a new installation." ; \
 	fi
 
-install2 : install-document install-help install-html-help
+install-document : install-html-help
+	@if [ ! -f ./.done_install_document ] ; \
+	then \
+		make install-document2 ; \
+		touch ./.done_install_document ; \
+	else \
+		echo "NOTE: Installation of document is already done. Remove .done_install_document for a new installation." ; \
+	fi
 
+
+install2 : install-help 
+
 gentexi : gentexi.c
 	gcc -o gentexi gentexi.c
 
@@ -216,21 +228,21 @@ oxrfc100-en.texi : oxrfc100.oxweave Makefile
 	$(RM) -f oxrfc100-en.texi
 	$(OXWEAVE) C-texi eg-texi  <oxrfc100.oxweave >oxrfc100-en.texi
 
-oxmath-ja.texi : $(CONTRIB)/m Makefile
+oxmath-ja.texi : m.oxweave Makefile
 	$(RM) -f oxmath-ja.texi
-	$(OXWEAVE) C-texi jp-texi  <$(CONTRIB)/m >oxmath-ja.texi
+	$(OXWEAVE) C-texi jp-texi  <m.oxweave >oxmath-ja.texi
 
-oxmath-en.texi : $(CONTRIB)/m Makefile
+oxmath-en.texi : m.oxweave Makefile
 	$(RM) -f oxmath-en.texi
-	$(OXWEAVE) C-texi eg-texi  <$(CONTRIB)/m >oxmath-en.texi
+	$(OXWEAVE) C-texi eg-texi  <m.oxweave >oxmath-en.texi
 
-oxphc-ja.texi : $(CONTRIB)/phc Makefile
+oxphc-ja.texi : phc.oxweave Makefile
 	$(RM) -f oxphc-ja.texi
-	$(OXWEAVE) C-texi jp-texi  <$(CONTRIB)/phc >oxphc-ja.texi
+	$(OXWEAVE) C-texi jp-texi  <phc.oxweave >oxphc-ja.texi
 
-oxphc-en.texi : $(CONTRIB)/phc Makefile
+oxphc-en.texi : phc.oxweave Makefile
 	$(RM) -f oxphc-en.texi
-	$(OXWEAVE) C-texi eg-texi  <$(CONTRIB)/phc >oxphc-en.texi
+	$(OXWEAVE) C-texi eg-texi  <phc.oxweave >oxphc-en.texi
 
 oxgnuplot-ja.texi : gnuplot.oxweave Makefile
 	$(RM) -f oxgnuplot-ja.texi
@@ -250,7 +262,7 @@ oxsm1-en.texi : sm1.oxweave Makefile sm1-auto-en.texi
 sm1-auto-en.texi : $(CONTRIB)/sm1 gentexi
 	$(RM) -f sm1-auto-en.texi
 	$(OXWEAVE) usage  <$(CONTRIB)/sm1 | ./gentexi --category sm1 --en --upnode "SM1 Functions" ${OPTGENTEXI} >sm1-auto-en.texi
-sm1-auto-ja.texi : $(CONTRIB)/names.rr gentexi
+sm1-auto-ja.texi : $(CONTRIB)/sm1 gentexi
 	$(RM) -f sm1-auto-ja.texi
 	$(OXWEAVE) usage  <$(CONTRIB)/sm1 | ./gentexi --category sm1 --ja --upnode "SM1 Functions" ${OPTGENTEXI} >sm1-auto-ja.texi
 
@@ -271,13 +283,13 @@ dsolv-en.texi : dsolv.oxweave Makefile
 	$(OXWEAVE) C-texi eg-texi  <dsolv.oxweave >dsolv-en.texi
 
 
-oxtigers-ja.texi : $(CONTRIB)/tigers Makefile
+oxtigers-ja.texi : tigers.oxweave Makefile
 	$(RM) -f oxtigers-ja.texi
-	$(OXWEAVE) C-texi jp-texi  <$(CONTRIB)/tigers >oxtigers-ja.texi
+	$(OXWEAVE) C-texi jp-texi  <tigers.oxweave >oxtigers-ja.texi
 
-oxtigers-en.texi : $(CONTRIB)/tigers Makefile
+oxtigers-en.texi : tigers.oxweave Makefile
 	$(RM) -f oxtigers-en.texi
-	$(OXWEAVE) C-texi eg-texi  <$(CONTRIB)/tigers >oxtigers-en.texi
+	$(OXWEAVE) C-texi eg-texi  <tigers.oxweave >oxtigers-en.texi
 
 ### windows
 windows-ja.texi : windows.oxweave Makefile
@@ -354,8 +366,6 @@ gen-help-en: $(EGSRCS) $(ASIRDOC)/extract_func $(ENAUT
 	cp cman-en.texi $(EGSRCS) $(ENAUTO) tmp
 	-(cd tmp; makeinfo --force cman-en.texi)
 	(cd help-en; for i in ../tmp/asir-contrib*; do ../$(ASIRDOC)/extract_func $$i; done)
-## duplicate some help files
-	-(cd help-en; cp sm1_hilbert hilbert_polynomial)
 
 gen-help-ja: $(JPSRCS) $(ASIRDOC)/extract_func $(JAAUTO)
 	-$(RM) -rf tmp-ja help-ja
@@ -363,8 +373,6 @@ gen-help-ja: $(JPSRCS) $(ASIRDOC)/extract_func $(JAAUT
 	for i in cman-ja.texi $(JPSRCS) $(JAAUTO); do nkf -e $$i > tmp-ja/$$i; done
 	-(cd tmp-ja; makeinfo --force cman-ja.texi)
 	(cd help-ja; for i in ../tmp-ja/asir-contrib*; do ../$(ASIRDOC)/extract_func -j $$i; done)
-## duplicate some help files
-	-(cd help-ja; cp sm1_hilbert hilbert_polynomial)
 
 gen-html-en: gen-help-en
 	-$(RM) -rf html-en
@@ -389,10 +397,12 @@ install-help: help
 	-cp -f help-en/* $(OpenXM_ROOT)/lib/asir/help-eg/xm.help
 
 install-html-help: gen-html-en gen-html-ja
+	-mkdir $(OpenXM_doc)/asir-contrib
 	-( tar cf - html-en | (cd $(OpenXM_doc)/asir-contrib ; tar xf -))
 	-( tar cf - html-ja | (cd $(OpenXM_doc)/asir-contrib ; tar xf -))
 
-install-document :  gen-dvi-ps
+install-document2 :  gen-dvi-ps
+	-mkdir $(OpenXM_doc)/asir-contrib
 	-cp cman-ja.dvi $(OpenXM_doc)/asir-contrib/cman-ja.dvi
 	-$(DVIPS) cman-ja >$(OpenXM_doc)/asir-contrib/cman-ja.ps
 	-cp cman-en.dvi $(OpenXM_doc)/asir-contrib/cman-en.dvi
@@ -408,13 +418,13 @@ cman-en.dvi: $(ENSRCS)
 
 clean-mk-openxm-asir-contrib-document-dir :
 	$(RM) -rf $(OpenXM_doc)/asir-contrib
-	$(RM) -f ./.done_install
+	$(RM) -f ./.done_install ./.done_install_document
 	mkdir $(OpenXM_doc)/asir-contrib
 	touch $(OpenXM_doc)/asir-contrib/DO_NOT_EDIT_THIS_DIRECTORY._ALL_FILES_ARE_AUTOMATICDALLY_GENERATED.
 
 
 clean :
-	$(RM) -f ./.done_install
+	$(RM) -f ./.done_install ./.done_install_document
 	$(RM) -f gentexi $(JAAUTO) $(ENAUTO) gentexi-in.tmp gentexi-out.tmp
 	$(RM) -f oxrfc100-ja.texi oxrfc100-en.texi oxmath-ja.texi *~ *.aux *.cp *.dvi *.fn *.ky *.log *.pg *.toc *.tp *.vr oxmath-en.texi oxphc-ja.texi oxphc-en.texi oxgnuplot-ja.texi oxgnuplot-en.texi oxsm1-ja.texi oxsm1-en.texi oxom-en.texi oxom-ja.texi dsolv-ja.texi dsolv-en.texi longname-ja.texi longname-en.texi oxtigers-ja.texi oxtigers-en.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 base-ja.texi base-en.texi glib-ja.texi glib-en.texi misc-ja.texi misc-en.texi pfp-ja.texi pfp-en.texi windows-ja.texi windows-en.texi intro-ja.texi intro-en.texi util-en.texi util-ja.texi
 	$(RM) -rf help-ja help-en tmp tmp-ja html-en html-ja