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

Annotation of OpenXM/src/asir-contrib/packages/doc/Makefile.in, Revision 1.4

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

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