=================================================================== RCS file: /home/cvs/OpenXM/src/asir-contrib/packages/doc/Attic/Makefile,v retrieving revision 1.17 retrieving revision 1.32 diff -u -p -r1.17 -r1.32 --- OpenXM/src/asir-contrib/packages/doc/Attic/Makefile 2001/06/18 01:40:03 1.17 +++ OpenXM/src/asir-contrib/packages/doc/Attic/Makefile 2002/07/14 13:14:37 1.32 @@ -1,7 +1,7 @@ -#$OpenXM: OpenXM/src/asir-contrib/packages/doc/Makefile,v 1.16 2001/05/27 11:00:05 takayama Exp $ +#$OpenXM: OpenXM/src/asir-contrib/packages/doc/Makefile,v 1.31 2002/07/14 12:13:42 takayama Exp $ # targets # all : -# Extracts all tex-info files from ../src/* +# Extracts all tex-info files from ../src/* and generate *.texi files. # install : install-document install-help # install-help : all # Installing online help to OpenXM/lib/asir/help-* @@ -9,24 +9,79 @@ # Copy the documents to OpenXM/doc/asir-contrib # install-html-help # Copy html help to OpenXM/doc/asir-contrib +# gen-html-en gen-html-ja +# Generate HTML documents under html-en and html-ja # # NOTE: install-help should be executed after installing asir2000. +######################################################################## +# How to add new documents in the category xxx +# "xxx*.texi <--- xxx.oxweave (manually written) + xxx*auto*.texi (automatic)" +# (1) "xxx.oxweave" --> xxx-en.texi and xxx-ja.texi +# xxx-auto-en.texi and xxx-auto-ja.texi should be included from +# xxx-en.texi and xxx-ja.texi (JPSRCS, EGSRCS) +# NOTE: xxx.oxweave might be embedded in xxx.rr or xxx, +# but this style is obsolete. +# (2) "xxx.rr" or "xxx" --> xxx-auto-en.texi and xxx-auto-ja.texi +# (JAAUTO, ENAUTO) +# xxx-auto*.texi's are extracted from xxx or xxx.rr +# (3) xxx-en.texi and xxx-ja.texi should be included from cman.texi +# and cman-eg.texi +# cf. glib* base* +######################################################################## OpenXM_ROOT=../../../../../OpenXM ASIRDOC=$(OpenXM_ROOT)/src/asir-doc ASIRLIB=$(OpenXM_ROOT)/../OpenXM_contrib2/asir2000/lib CONTRIB=$(OpenXM_ROOT)/src/asir-contrib/packages/src +OPTGENTEXI= --include +#OPTGENTEXI= --include --example ## 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 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 -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 +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 base-ja.texi misc-ja.texi glib-ja.texi pfp-ja.texi plucker-ja.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 base-en.texi misc-en.texi glib-en.texi pfp-en.texi plucker-en.texi -all : $(JPSRCS) $(EGSRCS) -install : install-document install-help +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 \ + sm1-auto-ja.texi plucker-auto-ja.texi +ENAUTO=base-auto-en.texi pfp-auto-en.texi poly-auto-en.texi \ + print-auto-en.texi matrix-auto-en.texi glib-auto-en.texi \ + sm1-auto-en.texi plucker-auto-en.texi +all : gentexi $(JPSRCS) $(EGSRCS) $(JAAUTO) $(ENAUTO) + @echo "Type in tex cman-eg.texi to generate the manual(en) in dvi format." + @echo "Type in ptex cman.texi to generate the manual(ja) in dvi format." +install : + @if [ ! -f ./.done_install ] ; \ + then \ + make install2 ; \ + touch ./.done_install ; \ + else \ + echo "NOTE: Installation is already done. Remove .done_install for a new installation." ; \ + fi + +install2 : install-document install-help install-html-help + +gentexi : gentexi.c + gcc -o gentexi gentexi.c + +###base +base-ja.texi : base.oxweave + /bin/rm -f base-ja.texi + $(OXWEAVE) C ja base-ja.texi +base-en.texi : base.oxweave + /bin/rm -f base-en.texi + $(OXWEAVE) C en base-en.texi +base-auto-en.texi : $(CONTRIB)/names.rr gentexi + rm -f base-auto-en.texi + $(OXWEAVE) usage <$(CONTRIB)/names.rr | ./gentexi --category base --en --upnode Top ${OPTGENTEXI} >base-auto-en.texi +base-auto-ja.texi : $(CONTRIB)/names.rr gentexi + rm -f base-auto-ja.texi + $(OXWEAVE) usage <$(CONTRIB)/names.rr | ./gentexi --category base --ja --upnode Top ${OPTGENTEXI} >base-auto-ja.texi + + names-ja.texi : names.oxweave /bin/rm -f names-ja.texi $(OXWEAVE) C ja names-ja.texi @@ -35,6 +90,20 @@ names-en.texi : names.oxweave /bin/rm -f names-en.texi $(OXWEAVE) C en names-en.texi +###plucker +plucker-ja.texi : plucker.oxweave + /bin/rm -f plucker-ja.texi + $(OXWEAVE) C ja plucker-ja.texi +plucker-en.texi : plucker.oxweave + /bin/rm -f plucker-en.texi + $(OXWEAVE) C en plucker-en.texi +plucker-auto-en.texi : $(CONTRIB)/plucker.rr gentexi + rm -f plucker-auto-en.texi + $(OXWEAVE) usage <$(CONTRIB)/plucker.rr | ./gentexi --category plucker --en --upnode Top ${OPTGENTEXI} >plucker-auto-en.texi +plucker-auto-ja.texi : $(CONTRIB)/plucker.rr gentexi + rm -f plucker-auto-ja.texi + $(OXWEAVE) usage <$(CONTRIB)/plucker.rr | ./gentexi --category plucker --ja --upnode Top ${OPTGENTEXI} >plucker-auto-ja.texi + hypergeometric-ja.texi : hypergeometric.oxweave /bin/rm -f hypergeometric-ja.texi $(OXWEAVE) C ja hypergeometric-ja.texi @@ -67,14 +136,21 @@ series-en.texi : series.oxweave /bin/rm -f series-en.texi $(OXWEAVE) C en series-en.texi +### matrix matrix-ja.texi : matrix.oxweave /bin/rm -f matrix-ja.texi $(OXWEAVE) C ja matrix-ja.texi - matrix-en.texi : matrix.oxweave /bin/rm -f matrix-en.texi $(OXWEAVE) C en matrix-en.texi +matrix-auto-en.texi : $(CONTRIB)/names.rr gentexi + rm -f matrix-auto-en.texi + $(OXWEAVE) usage <$(CONTRIB)/names.rr | ./gentexi --category matrix --en --upnode Top ${OPTGENTEXI} >matrix-auto-en.texi +matrix-auto-ja.texi : $(CONTRIB)/names.rr gentexi + rm -f matrix-auto-ja.texi + $(OXWEAVE) usage <$(CONTRIB)/names.rr | ./gentexi --category matrix --ja --upnode Top ${OPTGENTEXI} >matrix-auto-ja.texi + graphic-ja.texi : graphic.oxweave /bin/rm -f graphic-ja.texi $(OXWEAVE) C ja graphic-ja.texi @@ -83,21 +159,33 @@ graphic-en.texi : graphic.oxweave /bin/rm -f graphic-en.texi $(OXWEAVE) C en graphic-en.texi +### print print-ja.texi : print.oxweave /bin/rm -f print-ja.texi $(OXWEAVE) C ja print-ja.texi - print-en.texi : print.oxweave /bin/rm -f print-en.texi $(OXWEAVE) C en print-en.texi +print-auto-en.texi : $(CONTRIB)/names.rr gentexi + rm -f print-auto-en.texi + $(OXWEAVE) usage <$(CONTRIB)/names.rr | ./gentexi --category print --en --upnode Top ${OPTGENTEXI} >print-auto-en.texi +print-auto-ja.texi : $(CONTRIB)/names.rr gentexi + rm -f print-auto-ja.texi + $(OXWEAVE) usage <$(CONTRIB)/names.rr | ./gentexi --category print --ja --upnode Top ${OPTGENTEXI} >print-auto-ja.texi +###poly poly-ja.texi : poly.oxweave /bin/rm -f poly-ja.texi $(OXWEAVE) C ja poly-ja.texi - poly-en.texi : poly.oxweave /bin/rm -f poly-en.texi $(OXWEAVE) C en poly-en.texi +poly-auto-en.texi : $(CONTRIB)/names.rr gentexi + rm -f poly-auto-en.texi + $(OXWEAVE) usage <$(CONTRIB)/names.rr | ./gentexi --category poly --en --upnode Top ${OPTGENTEXI} >poly-auto-en.texi +poly-auto-ja.texi : $(CONTRIB)/names.rr gentexi + rm -f poly-auto-ja.texi + $(OXWEAVE) usage <$(CONTRIB)/names.rr | ./gentexi --category poly --ja --upnode Top ${OPTGENTEXI} >poly-auto-ja.texi complex-ja.texi : complex.oxweave /bin/rm -f complex-ja.texi @@ -140,13 +228,19 @@ oxgnuplot-eg.texi : $(CONTRIB)/gnuplot Makefile /bin/rm -f oxgnuplot-eg.texi $(OXWEAVE) C-texi eg-texi <$(CONTRIB)/gnuplot >oxgnuplot-eg.texi -oxsm1.texi : $(CONTRIB)/sm1 Makefile +###sm1 +oxsm1.texi : sm1.oxweave Makefile sm1-auto-ja.texi /bin/rm -f oxsm1.texi - $(OXWEAVE) C-texi jp-texi <$(CONTRIB)/sm1 >oxsm1.texi - -oxsm1-eg.texi : $(CONTRIB)/sm1 Makefile + $(OXWEAVE) C-texi jp-texi oxsm1.texi +oxsm1-eg.texi : sm1.oxweave Makefile sm1-auto-en.texi /bin/rm -f oxsm1-eg.texi - $(OXWEAVE) C-texi eg-texi <$(CONTRIB)/sm1 >oxsm1-eg.texi + $(OXWEAVE) C-texi eg-texi oxsm1-eg.texi +sm1-auto-en.texi : $(CONTRIB)/sm1 gentexi + rm -f sm1-auto-en.texi + $(OXWEAVE) usage <$(CONTRIB)/sm1 | ./gentexi --category sm1 --en --upnode Top ${OPTGENTEXI} >sm1-auto-en.texi +sm1-auto-ja.texi : $(CONTRIB)/names.rr gentexi + rm -f sm1-auto-ja.texi + $(OXWEAVE) usage <$(CONTRIB)/sm1 | ./gentexi --category sm1 --ja --upnode Top ${OPTGENTEXI} >sm1-auto-ja.texi oxom.texi : $(CONTRIB)/om Makefile /bin/rm -f oxom.texi @@ -180,37 +274,74 @@ oxtigers-eg.texi : $(CONTRIB)/tigers Makefile /bin/rm -f oxtigers-eg.texi $(OXWEAVE) C-texi eg-texi <$(CONTRIB)/tigers >oxtigers-eg.texi -help-eg: $(EGSRCS) $(ASIRDOC)/extract_func +###misc +misc-ja.texi : misc.oxweave + /bin/rm -f misc-ja.texi + $(OXWEAVE) C ja misc-ja.texi +misc-en.texi : misc.oxweave + /bin/rm -f misc-en.texi + $(OXWEAVE) C en misc-en.texi + +###glib +glib-ja.texi : glib.oxweave + /bin/rm -f glib-ja.texi + $(OXWEAVE) C ja glib-ja.texi +glib-en.texi : glib.oxweave + /bin/rm -f glib-en.texi + $(OXWEAVE) C en glib-en.texi +glib-auto-en.texi : ${ASIRLIB}/glib gentexi + rm -f glib-auto-en.texi + cat ${ASIRLIB}/glib | $(OXWEAVE) usage | ./gentexi --category glib --en --upnode Top ${OPTGENTEXI} >glib-auto-en.texi +glib-auto-ja.texi : ${ASIRLIB}/glib gentexi + rm -f glib-auto-ja.texi + cat ${ASIRLIB}/glib | $(OXWEAVE) usage | ./gentexi --category glib --ja --upnode Top ${OPTGENTEXI} >glib-auto-ja.texi + +###pfp +pfp-ja.texi : pfp.oxweave + /bin/rm -f pfp-ja.texi + $(OXWEAVE) C ja pfp-ja.texi +pfp-en.texi : pfp.oxweave + /bin/rm -f pfp-en.texi + $(OXWEAVE) C en pfp-en.texi +pfp-auto-en.texi : $(CONTRIB)/pfpcoh.rr $(CONTRIB)/pfphom.rr gentexi + rm -f pfp-auto-en.texi + cat $(CONTRIB)/pfpcoh.rr $(CONTRIB)/pfphom.rr | $(OXWEAVE) usage | ./gentexi --en --upnode Top ${OPTGENTEXI} >pfp-auto-en.texi +pfp-auto-ja.texi : $(CONTRIB)/pfpcoh.rr $(CONTRIB)/pfphom.rr gentexi + rm -f pfp-auto-ja.texi + cat $(CONTRIB)/pfpcoh.rr $(CONTRIB)/pfphom.rr | $(OXWEAVE) usage | ./gentexi --ja --upnode Top ${OPTGENTEXI} >pfp-auto-ja.texi + +###### Generating online manual +gen-help-eg: $(EGSRCS) $(ASIRDOC)/extract_func $(ENAUTO) -rm -rf tmp help-eg mkdir help-eg tmp - cp cman-eg.texi $(EGSRCS) tmp + cp cman-eg.texi $(EGSRCS) $(ENAUTO) 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 -j $$i; done) +gen-help-jp: $(JPSRCS) $(ASIRDOC)/extract_func $(JAAUTO) + -rm -rf tmp-ja help-jp + mkdir help-jp tmp-ja + for i in cman.texi $(JPSRCS) $(JAAUTO); 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) -html-en: help-eg +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) -html-ja: help-jp +gen-html-ja: gen-help-jp -mkdir html-ja - -cp tmp/*.texi html-ja - -cp tmp/cman.texi html-ja/cman-ja.texi + -cp tmp-ja/*.texi html-ja + -cp tmp-ja/cman.texi html-ja/cman-ja.texi -(cd html-ja; ${TEXI2HTML} cman-ja.texi) -help: help-eg help-jp +help: gen-help-eg gen-help-jp install-help: help /bin/rm -rf $(OpenXM_ROOT)/lib/asir/help-jp/xm.help @@ -220,7 +351,7 @@ 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: html-en html-ja +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 -)) @@ -237,10 +368,13 @@ install-document : all clean-document clean-document : /bin/rm -rf $(OpenXM_doc)/asir-contrib + rm -f ./.done_install mkdir $(OpenXM_doc)/asir-contrib touch $(OpenXM_doc)/asir-contrib/DO_NOT_EDIT_THIS_DIRECTORY._ALL_FILES_ARE_AUTOMATICDALLY_GENERATED. 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 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 - /bin/rm -rf help-jp help-eg tmp html-en html-ja + rm -f ./.done_install + rm -f gentexi $(JAAUTO) $(ENAUTO) gentexi-in.tmp gentexi-out.tmp + 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 base-ja.texi base-en.texi glib-ja.texi glib-en.texi misc-ja.texi misc-en.texi pfp-ja.texi pfp-en.texi + /bin/rm -rf help-jp help-eg tmp tmp-ja html-en html-ja