[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / src / asir-contrib / packages / doc

Annotation of OpenXM/src/asir-contrib/packages/doc/Makefile, Revision 1.60

1.60    ! takayama    1: #$OpenXM$
1.5       takayama    2: # targets
1.55      ohara       3: # all :
1.29      takayama    4: #     Extracts all tex-info files from ../src/* and generate *.texi files.
1.51      takayama    5: # install : install-help
1.6       takayama    6: # install-help : all
1.5       takayama    7: #        Installing online help to OpenXM/lib/asir/help-*
1.36      takayama    8: # install-document :  all  gen-dvi-ps
                      9: #        Copy the documents in dvi and ps to OpenXM/doc/asir-contrib
1.15      takayama   10: # install-html-help
                     11: #        Copy html help to OpenXM/doc/asir-contrib
1.29      takayama   12: # gen-html-en  gen-html-ja
                     13: #        Generate HTML documents under html-en and html-ja
1.48      takayama   14: # gen-help-en  gen-help-ja
                     15: #        Generate help files.
1.36      takayama   16: # gen-dvi-ps
                     17: #        Generate dvi and ps files.
1.15      takayama   18: #
1.6       takayama   19: # NOTE: install-help should be executed after installing asir2000.
1.29      takayama   20: ########################################################################
                     21: #  How to add new documents in the category xxx
1.57      ohara      22: # "xxx*.texi <--- xxx.oxweave (manually written) + xxx*-auto.{en,ja} (automatic)"
                     23: #   (1) "xxx.oxweave" --> xxx.en and xxx.ja
                     24: #       xxx-auto.en and xxx-auto.ja should be included from
                     25: #       xxx.en and xxx.ja  (JASRCS, ENSRCS)
1.55      ohara      26: #     NOTE: xxx.oxweave might be embedded in xxx.rr or xxx,
1.29      takayama   27: #           but this style is obsolete.
1.57      ohara      28: #   (2) "xxx.rr" or "xxx" --> xxx-auto.en and xxx-auto.ja
1.29      takayama   29: #       (JAAUTO, ENAUTO)
                     30: #       xxx-auto*.texi's are extracted from xxx or xxx.rr
1.57      ohara      31: #   (3) xxx.en and xxx.ja should be included from cman.texi
1.33      takayama   32: #     and cman-en.texi
1.29      takayama   33: #  cf.  glib*  base*
                     34: ########################################################################
1.5       takayama   35: OpenXM_ROOT=../../../../../OpenXM
1.60    ! takayama   36: ASIRDOC=../../../asir-doc
        !            37: ASIRLIB=${OpenXM_ROOT}/../OpenXM_contrib2/asir2000/lib
        !            38: CONTRIB=../src
1.55      ohara      39: OPTGENTEXI= --include
1.23      takayama   40: #OPTGENTEXI= --include --example
1.60    ! takayama   41: ## PS documents are installed under ${OpenXM_doc}/asir-contrib
        !            42: INSTALL_doc=/.amd_mnt/berry/usr/export/home01/taka/OX4/OpenXM/doc
        !            43: INSTALL_lib=/.amd_mnt/berry/usr/export/home01/taka/OX4/OpenXM/lib
        !            44: OXWEAVE=/.amd_mnt/berry/usr/export/home01/taka/OX4/OpenXM/bin/oxweave
1.5       takayama   45: DVIPS=dvips -f
1.15      takayama   46: TEXI2HTML=texi2html -menu -split_node
1.39      takayama   47: RM=rm
1.59      ohara      48: DVIPDF=dvipdfmx
1.5       takayama   49:
1.57      ohara      50: SRC = base.oxweave calculus.oxweave complex.oxweave dsolv.oxweave \
                     51:       glib.oxweave gnuplot.oxweave graphic.oxweave hypergeometric.oxweave \
                     52:       intro.oxweave m.oxweave matrix.oxweave misc.oxweave names.oxweave \
                     53:       number.oxweave oxrfc100.oxweave pfp.oxweave phc.oxweave \
                     54:       plucker.oxweave poly.oxweave print.oxweave series.oxweave sm1.oxweave \
                     55:       tigers.oxweave util.oxweave windows.oxweave
                     56:
                     57: ENSRCS = ${SRC:.oxweave=.en} opening.texi oxom.en
                     58: JASRCS = ${SRC:.oxweave=.ja} opening.texi oxom.ja Diff-ja.texi Dmodule-ja.texi
                     59: ENAUTO=  base-auto.en glib-auto.en matrix-auto.en number-auto.en pfp-auto.en \
                     60:          plucker-auto.en poly-auto.en print-auto.en sm1-auto.en util-auto.en
                     61: JAAUTO=${ENAUTO:.en=.ja}
                     62:
1.59      ohara      63: .SUFFIXES: .en .ja .oxweave .dvi .pdf
1.57      ohara      64:
                     65: .oxweave.en:
1.60    ! takayama   66:        ${RM} -f ${<:.oxweave=.en}
        !            67:        ${OXWEAVE} C en < $< > ${<:.oxweave=.en}
1.57      ohara      68:
                     69: .oxweave.ja:
1.60    ! takayama   70:        ${RM} -f ${<:.oxweave=.ja}
        !            71:        ${OXWEAVE} C ja < $< > ${<:.oxweave=.ja}
1.6       takayama   72:
1.59      ohara      73: .dvi.pdf:
                     74:        ${DVIPDF} $<
                     75:
1.60    ! takayama   76: all : gentexi ${JASRCS} ${ENSRCS} ${JAAUTO} ${ENAUTO}
1.33      takayama   77:        @echo "Type in  tex cman-en.texi to generate the manual(en) in dvi format."
1.55      ohara      78:        @echo "Type in ptex cman-ja.texi to generate the manual(ja) in dvi format."
                     79:
1.28      takayama   80: install :
1.57      ohara      81:        @if [ ! -f ./.done_install ] ; then \
1.28      takayama   82:                make install2 ; \
                     83:                touch ./.done_install ; \
                     84:        else \
                     85:                echo "NOTE: Installation is already done. Remove .done_install for a new installation." ; \
                     86:        fi
                     87:
1.51      takayama   88: install-document : install-html-help
1.57      ohara      89:        @if [ ! -f ./.done_install_document ] ; then \
1.51      takayama   90:                make install-document2 ; \
                     91:                touch ./.done_install_document ; \
                     92:        else \
                     93:                echo "NOTE: Installation of document is already done. Remove .done_install_document for a new installation." ; \
                     94:        fi
                     95:
1.55      ohara      96: install2 : install-help
1.1       takayama   97:
1.22      takayama   98: gentexi : gentexi.c
                     99:        gcc -o gentexi gentexi.c
                    100:
1.60    ! takayama  101: oxom.ja : ${CONTRIB}/om
        !           102:        ${RM} -f oxom.ja
        !           103:        ${OXWEAVE} C ja  <${CONTRIB}/om >oxom.ja
        !           104: oxom.en : ${CONTRIB}/om
        !           105:        ${RM} -f oxom.en
        !           106:        ${OXWEAVE} C en  <${CONTRIB}/om >oxom.en
1.57      ohara     107:
                    108: ### base
1.60    ! takayama  109: base-auto.en : ${CONTRIB}/names.rr gentexi
        !           110:        ${RM} -f base-auto.en
        !           111:        ${OXWEAVE} usage  <${CONTRIB}/names.rr | ./gentexi --category base --en --upnode "Basic (Standard Functions)" ${OPTGENTEXI} >base-auto.en
        !           112: base-auto.ja : ${CONTRIB}/names.rr gentexi
        !           113:        ${RM} -f base-auto.ja
        !           114:        ${OXWEAVE} usage  <${CONTRIB}/names.rr | ./gentexi --category base --ja --upnode "Basic (Standard Functions)" ${OPTGENTEXI} >base-auto.ja
1.57      ohara     115:
                    116: ### plucker
1.60    ! takayama  117: plucker-auto.en : ${CONTRIB}/plucker.rr gentexi
        !           118:        ${RM} -f plucker-auto.en
        !           119:        ${OXWEAVE} usage  <${CONTRIB}/plucker.rr | ./gentexi --category plucker --en --upnode "Plucker relations" ${OPTGENTEXI} >plucker-auto.en
        !           120: plucker-auto.ja : ${CONTRIB}/plucker.rr gentexi
        !           121:        ${RM} -f plucker-auto.ja
        !           122:        ${OXWEAVE} usage  <${CONTRIB}/plucker.rr | ./gentexi --category plucker --ja --upnode "Plucker relations" ${OPTGENTEXI} >plucker-auto.ja
1.16      takayama  123:
1.42      takayama  124: ### number
1.60    ! takayama  125: number-auto.en :  ${CONTRIB}/names.rr gentexi
        !           126:        ${RM} -f number-auto.en
        !           127:        cat ${CONTRIB}/names.rr | ${OXWEAVE} usage | ./gentexi  --category number --en --upnode "Numbers (Standard Mathematical Functions)" ${OPTGENTEXI} >number-auto.en
        !           128: number-auto.ja : ${CONTRIB}/names.rr gentexi
        !           129:        ${RM} -f number-auto.ja
        !           130:        cat ${CONTRIB}/names.rr | ${OXWEAVE} usage  | ./gentexi   --category number  --ja --upnode "Numbers (Standard Mathematical Functions)" ${OPTGENTEXI} >number-auto.ja
1.16      takayama  131:
1.32      takayama  132: ### matrix
1.60    ! takayama  133: matrix-auto.en : ${CONTRIB}/names.rr gentexi
        !           134:        ${RM} -f matrix-auto.en
        !           135:        ${OXWEAVE} usage  <${CONTRIB}/names.rr | ./gentexi --category matrix --en --upnode "Matrix (Standard Mathematical Functions)" ${OPTGENTEXI} >matrix-auto.en
        !           136: matrix-auto.ja : ${CONTRIB}/names.rr gentexi
        !           137:        ${RM} -f matrix-auto.ja
        !           138:        ${OXWEAVE} usage  <${CONTRIB}/names.rr | ./gentexi --category matrix --ja --upnode "Matrix (Standard Mathematical Functions)" ${OPTGENTEXI} >matrix-auto.ja
1.16      takayama  139:
1.32      takayama  140: ### print
1.60    ! takayama  141: print-auto.en : ${CONTRIB}/names.rr gentexi
        !           142:        ${RM} -f print-auto.en
        !           143:        ${OXWEAVE} usage  <${CONTRIB}/names.rr | ./gentexi --category print --en --upnode "Print (Standard Mathematical Functions)" ${OPTGENTEXI} >print-auto.en
        !           144: print-auto.ja : ${CONTRIB}/names.rr gentexi
        !           145:        ${RM} -f print-auto.ja
        !           146:        ${OXWEAVE} usage  <${CONTRIB}/names.rr | ./gentexi --category print --ja --upnode "Print (Standard Mathematical Functions)" ${OPTGENTEXI} >print-auto.ja
1.57      ohara     147:
                    148: ### poly
1.60    ! takayama  149: poly-auto.en : ${CONTRIB}/names.rr gentexi
        !           150:        ${RM} -f poly-auto.en
        !           151:        ${OXWEAVE} usage  <${CONTRIB}/names.rr | ./gentexi --category poly --en --upnode "Polynomials (Standard Mathematical Functions)" ${OPTGENTEXI} >poly-auto.en
        !           152: poly-auto.ja : ${CONTRIB}/names.rr gentexi
        !           153:        ${RM} -f poly-auto.ja
        !           154:        ${OXWEAVE} usage  <${CONTRIB}/names.rr | ./gentexi --category poly --ja --upnode "Polynomials (Standard Mathematical Functions)" ${OPTGENTEXI} >poly-auto.ja
1.57      ohara     155: ### sm1
1.60    ! takayama  156: sm1-auto.en : ${CONTRIB}/sm1 gentexi
        !           157:        ${RM} -f sm1-auto.en
        !           158:        ${OXWEAVE} usage  <${CONTRIB}/sm1 | ./gentexi --category sm1 --en --upnode "SM1 Functions" ${OPTGENTEXI} >sm1-auto.en
        !           159: sm1-auto.ja : ${CONTRIB}/sm1 gentexi
        !           160:        ${RM} -f sm1-auto.ja
        !           161:        ${OXWEAVE} usage  <${CONTRIB}/sm1 | ./gentexi --category sm1 --ja --upnode "SM1 Functions" ${OPTGENTEXI} >sm1-auto.ja
1.57      ohara     162:
                    163: ### glib
                    164: glib-auto.en : ${ASIRLIB}/glib gentexi
1.60    ! takayama  165:        ${RM} -f glib-auto.en
        !           166:        cat ${ASIRLIB}/glib | ${OXWEAVE} usage | ./gentexi  --category glib --en --upnode "Graphic Library (2 dimensional)" ${OPTGENTEXI} >glib-auto.en
1.57      ohara     167: glib-auto.ja : ${ASIRLIB}/glib gentexi
1.60    ! takayama  168:        ${RM} -f glib-auto.ja
        !           169:        cat ${ASIRLIB}/glib | ${OXWEAVE} usage  | ./gentexi   --category glib  --ja --upnode "Graphic Library (2 dimensional)" ${OPTGENTEXI} >glib-auto.ja
1.57      ohara     170:
                    171: ### pfp
1.60    ! takayama  172: pfp-auto.en : ${CONTRIB}/pfpcoh.rr ${CONTRIB}/pfphom.rr gentexi
        !           173:        ${RM} -f pfp-auto.en
        !           174:        cat ${CONTRIB}/pfpcoh.rr ${CONTRIB}/pfphom.rr | ${OXWEAVE} usage | ./gentexi  --en --upnode  Pfpcohom ${OPTGENTEXI} >pfp-auto.en
        !           175: pfp-auto.ja : ${CONTRIB}/pfpcoh.rr ${CONTRIB}/pfphom.rr gentexi
        !           176:        ${RM} -f pfp-auto.ja
        !           177:        cat ${CONTRIB}/pfpcoh.rr ${CONTRIB}/pfphom.rr | ${OXWEAVE} usage  | ./gentexi  --ja --upnode Pfpcohom ${OPTGENTEXI} >pfp-auto.ja
1.57      ohara     178:
                    179: ### util
1.60    ! takayama  180: util-auto.en :  ${CONTRIB}/names.rr gentexi
        !           181:        ${RM} -f util-auto.en
        !           182:        cat ${CONTRIB}/names.rr | ${OXWEAVE} usage | ./gentexi  --category util --en --upnode "Utility Functions" ${OPTGENTEXI} >util-auto.en
        !           183: util-auto.ja : ${CONTRIB}/names.rr gentexi
        !           184:        ${RM} -f util-auto.ja
        !           185:        cat ${CONTRIB}/names.rr | ${OXWEAVE} usage  | ./gentexi   --category util  --ja --upnode "Utility Functions" ${OPTGENTEXI} >util-auto.ja
1.57      ohara     186:
                    187: ### Generating online manual
1.60    ! takayama  188: gen-help-en: ${ENSRCS} ${ASIRDOC}/extract_func ${ENAUTO}
        !           189:        -${RM} -rf tmp-en help-en
1.57      ohara     190:        mkdir help-en tmp-en
1.60    ! takayama  191:        cp cman-en.texi ${ENSRCS} ${ENAUTO} tmp-en
1.57      ohara     192:        -(cd tmp-en; makeinfo --force cman-en.texi)
1.60    ! takayama  193:        (cd help-en; for i in ../tmp-en/asir-contrib*; do ../${ASIRDOC}/extract_func $$i; done)
1.3       noro      194:
1.60    ! takayama  195: gen-help-ja: ${JASRCS} ${ASIRDOC}/extract_func ${JAAUTO}
        !           196:        -${RM} -rf tmp-ja help-ja
1.33      takayama  197:        mkdir help-ja tmp-ja
1.60    ! takayama  198:        for i in cman-ja.texi ${JASRCS} ${JAAUTO}; do nkf -e $$i > tmp-ja/$$i; done
1.33      takayama  199:        -(cd tmp-ja; makeinfo --force cman-ja.texi)
1.60    ! takayama  200:        (cd help-ja; for i in ../tmp-ja/asir-contrib*; do ../${ASIRDOC}/extract_func -j $$i; done)
1.3       noro      201:
1.33      takayama  202: gen-html-en: gen-help-en
1.60    ! takayama  203:        -${RM} -rf html-en
1.15      takayama  204:        -mkdir html-en
1.57      ohara     205:        -cp tmp-en/*.texi tmp-en/*.en html-en
1.33      takayama  206:        -(cd html-en; ${TEXI2HTML} cman-en.texi)
1.15      takayama  207:
1.33      takayama  208: gen-html-ja: gen-help-ja
1.15      takayama  209:        -mkdir html-ja
1.57      ohara     210:        -cp tmp-ja/*.texi tmp-ja/*.ja html-ja
1.33      takayama  211:        -cp tmp-ja/cman-ja.texi html-ja/cman-ja.texi
1.15      takayama  212:        -(cd html-ja; ${TEXI2HTML} cman-ja.texi)
                    213:
1.58      takayama  214: install-help:
                    215:        -make install-help-en
                    216:        -make install-help-ja
1.4       takayama  217:
1.58      takayama  218: install-help-ja: gen-help-ja
1.60    ! takayama  219:        ${RM} -rf ${INSTALL_lib}/asir/help-jp/xm.help
        !           220:        mkdir ${INSTALL_lib}/asir/help-jp/xm.help
        !           221:        -cp -f help-ja/* ${INSTALL_lib}/asir/help-jp/xm.help
1.58      takayama  222: install-help-en: gen-help-en
1.60    ! takayama  223:        ${RM} -rf ${INSTALL_lib}/asir/help-eg/xm.help
        !           224:        mkdir ${INSTALL_lib}/asir/help-eg/xm.help
        !           225:        -cp -f help-en/* ${INSTALL_lib}/asir/help-eg/xm.help
1.5       takayama  226:
1.18      takayama  227: install-html-help: gen-html-en gen-html-ja
1.60    ! takayama  228:        -mkdir ${INSTALL_doc}/asir-contrib
        !           229:        -( tar cf - html-en | (cd ${INSTALL_doc}/asir-contrib ; tar xf -))
        !           230:        -( tar cf - html-ja | (cd ${INSTALL_doc}/asir-contrib ; tar xf -))
1.15      takayama  231:
1.51      takayama  232: install-document2 :  gen-dvi-ps
1.60    ! takayama  233:        -mkdir ${INSTALL_lib}/asir-contrib
        !           234:        -cp cman-ja.dvi ${INSTALL_doc}/asir-contrib/cman-ja.dvi
        !           235:        -$(DVIPS) cman-ja >${INSTALL_doc}/asir-contrib/cman-ja.ps
        !           236:        -cp cman-en.dvi ${INSTALL_doc}/asir-contrib/cman-en.dvi
        !           237:        -$(DVIPS) cman-en >${INSTALL_doc}/asir-contrib/cman-en.ps
1.39      takayama  238: gen-dvi-ps: all clean-mk-openxm-asir-contrib-document-dir cman-ja.dvi cman-en.dvi
1.60    ! takayama  239: cman-ja.dvi: ${JASRCS} ${JAAUTO}
1.33      takayama  240:        -ptex cman-ja.texi
                    241:        -ptex cman-ja.texi
1.60    ! takayama  242: cman-en.dvi: ${ENSRCS} ${ENAUTO}
1.33      takayama  243:        -tex cman-en.texi
                    244:        -tex cman-en.texi
1.59      ohara     245:
                    246: cman-ja.pdf: cman-ja.dvi
                    247: cman-en.pdf: cman-en.dvi
1.5       takayama  248:
1.39      takayama  249: clean-mk-openxm-asir-contrib-document-dir :
1.60    ! takayama  250:        ${RM} -rf ${INSTALL_doc}/asir-contrib
        !           251:        ${RM} -f ./.done_install ./.done_install_document
        !           252:        mkdir ${INSTALL_doc}/asir-contrib
        !           253:        touch ${INSTALL_doc}/asir-contrib/DO_NOT_EDIT_THIS_DIRECTORY._ALL_FILES_ARE_AUTOMATICDALLY_GENERATED.
        !           254:
        !           255: clean:
        !           256:        -${RM} -rf ./.done_install ./.done_install_document config.log config.status autom4te.cache
        !           257:        ${RM} -f gentexi ${JAAUTO} ${ENAUTO} gentexi-in.tmp gentexi-out.tmp
        !           258:        ${RM} -f *.aux *.cp *.dvi *.fn *.ky *.log *.pg *.toc *.tp *.vr *~
        !           259:        ${RM} -f  *.en *.ja
        !           260:        ${RM} -rf help-ja help-en tmp-en tmp-ja html-en html-ja

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>