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

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

1.2     ! takayama    1: #$OpenXM: OpenXM/src/asir-contrib/packages/doc/top/Makefile,v 1.1 2005/04/09 05:47:41 takayama Exp $
1.1       takayama    2: # Targets
                      3: # gen-texi-en, gen-texi-ja : generating texi files.
                      4: # gen-html-en,  gen-html-ja :
                      5: #        Generate HTML documents under html-en and html-ja
                      6: # gen-help-en,  gen-help-ja :
                      7: #        Generate online help files under help-en, help-ja
                      8: # gen-dvi-en, gen-dvi-ja : generating dvi, ps, pdf files here.
                      9: # gen-ps-en,  gen-ps-ja  :
                     10: # gen-pdf-en, gen-pdf-ja :
                     11: #
                     12: # install-help-en, -ja
                     13: #        Installing online help to OpenXM/lib/asir/help-eg/xm.help
                     14: #        Installing online help to OpenXM/lib/asir/help-jp/xm.help
                     15: # install-html-en, -ja
                     16: #        Copy html help to OpenXM/doc/asir-contrib/ja, en
                     17: # install-dvi-en, -ja; install-ps-en, -ja; install-pdf-en, -ja;
                     18: #        Copy the documents in dvi and ps to OpenXM/doc/asir-contrib/ja, en
                     19: #
                     20: # NOTE: install-help should be executed after installing asir2000.
                     21: ########################################################################
                     22: #  How to add new documents in the category xxx
                     23: # "xxx*.texi <--- xxx.oxweave (manually written) + xxx*-auto.{en,ja} (automatic)"
                     24: #   (1) "xxx.oxweave" --> xxx.en and xxx.ja
                     25: #       xxx-auto.en and xxx-auto.ja should be included from
                     26: #       xxx.en and xxx.ja  (JASRCS, ENSRCS)
                     27: #     NOTE: xxx.oxweave might be embedded in xxx.rr or xxx,
                     28: #           but this style is obsolete.
                     29: #   (2) "xxx.rr" or "xxx" --> xxx-auto.en and xxx-auto.ja
                     30: #       (JAAUTO, ENAUTO)
                     31: #       xxx-auto*.texi's are extracted from xxx or xxx.rr
                     32: #   (3) xxx.en and xxx.ja should be included from cman.texi
                     33: #     and cman-en.texi
                     34: #  cf.  glib*  base*
                     35: ########################################################################
                     36: # They are configured and set by the upper level Makefile
                     37: INSTALL_doc=${OpenXM_HOME}/doc
                     38: INSTALL_lib=${OpenXM_HOME}/lib
                     39: OXWEAVE=${OpenXM_HOME}/bin/oxweave
                     40: OXGENTEXI=${OpenXM_HOME}/bin/oxgentexi
                     41: #
1.2     ! takayama   42: OpenXM_ROOT=../../../../../../OpenXM
1.1       takayama   43: ASIRDOC=${OpenXM_ROOT}/src/asir-doc
                     44: ASIRLIB=${OpenXM_ROOT}/../OpenXM_contrib2/asir2000/lib
                     45: CONTRIB=${OpenXM_ROOT}/src/asir-contrib/packages/src
                     46: OPTGENTEXI= --include
                     47: #OPTGENTEXI= --include --example
                     48: ## PS documents are installed under ${OpenXM_doc}/asir-contrib
                     49: DVIPS=dvips -f
                     50: TEXI2HTML=texi2html -menu -split_node
                     51: RM=rm
                     52: DVIPDF=dvipdfm
                     53:
                     54: SRC = base.oxw calculus.oxw complex.oxw \
                     55:       glib.oxw graphic.oxw hypergeometric.oxw \
                     56:       intro.oxw matrix.oxw misc.oxw names.oxw \
                     57:       number.oxw oxrfc100.oxw \
                     58:       poly.oxw print.oxw series.oxw \
                     59:       util.oxw windows.oxw oxshell.oxw
                     60:
                     61: ENSRCS = ${SRC:.oxw=.en}
                     62: JASRCS = ${SRC:.oxw=.ja}
                     63: ENAUTO=  base-auto.en glib-auto.en matrix-auto.en number-auto.en \
                     64:          poly-auto.en print-auto.en util-auto.en \
                     65:          oxshell-auto.en
                     66: JAAUTO=${ENAUTO:.en=.ja}
                     67:
                     68: .SUFFIXES: .en .ja .oxw .dvi .pdf
                     69:
                     70: .oxw.en:
                     71:        ${RM} -f ${<:.oxw=.en}
                     72:        ${OXWEAVE} C en < $< > ${<:.oxw=.en}
                     73:
                     74: .oxw.ja:
                     75:        ${RM} -f ${<:.oxw=.ja}
                     76:        ${OXWEAVE} C ja < $< > ${<:.oxw=.ja}
                     77:
                     78: .dvi.pdf:
                     79:        ${DVIPDF} $<
                     80:
                     81: gen-texi-ja: ${JASRCS} ${JAAUTO} cman-ja.texi
                     82: gen-texi-en: ${ENSRCS} ${ENAUTO} cman-en.texi
                     83:
                     84: ### base
                     85: base-auto.en : ${CONTRIB}/names.rr
                     86:        ${RM} -f base-auto.en
                     87:        ${OXWEAVE} usage  <${CONTRIB}/names.rr | ${OXGENTEXI} --category base --en --upnode "Basic (Standard Functions)" ${OPTGENTEXI} >base-auto.en
                     88: base-auto.ja : ${CONTRIB}/names.rr
                     89:        ${RM} -f base-auto.ja
                     90:        ${OXWEAVE} usage  <${CONTRIB}/names.rr | ${OXGENTEXI} --category base --ja --upnode "Basic (Standard Functions)" ${OPTGENTEXI} >base-auto.ja
                     91:
                     92: ### number
                     93: number-auto.en :  ${CONTRIB}/names.rr
                     94:        ${RM} -f number-auto.en
                     95:        cat ${CONTRIB}/names.rr | ${OXWEAVE} usage | ${OXGENTEXI}  --category number --en --upnode "Numbers (Standard Mathematical Functions)" ${OPTGENTEXI} >number-auto.en
                     96: number-auto.ja : ${CONTRIB}/names.rr
                     97:        ${RM} -f number-auto.ja
                     98:        cat ${CONTRIB}/names.rr | ${OXWEAVE} usage  | ${OXGENTEXI}   --category number  --ja --upnode "Numbers (Standard Mathematical Functions)" ${OPTGENTEXI} >number-auto.ja
                     99:
                    100: ### matrix
                    101: matrix-auto.en : ${CONTRIB}/names.rr
                    102:        ${RM} -f matrix-auto.en
                    103:        ${OXWEAVE} usage  <${CONTRIB}/names.rr | ${OXGENTEXI} --category matrix --en --upnode "Matrix (Standard Mathematical Functions)" ${OPTGENTEXI} >matrix-auto.en
                    104: matrix-auto.ja : ${CONTRIB}/names.rr
                    105:        ${RM} -f matrix-auto.ja
                    106:        ${OXWEAVE} usage  <${CONTRIB}/names.rr | ${OXGENTEXI} --category matrix --ja --upnode "Matrix (Standard Mathematical Functions)" ${OPTGENTEXI} >matrix-auto.ja
                    107:
                    108: ### print
                    109: print-auto.en : ${CONTRIB}/names.rr
                    110:        ${RM} -f print-auto.en
                    111:        ${OXWEAVE} usage  <${CONTRIB}/names.rr | ${OXGENTEXI} --category print --en --upnode "Print (Standard Mathematical Functions)" ${OPTGENTEXI} >print-auto.en
                    112: print-auto.ja : ${CONTRIB}/names.rr
                    113:        ${RM} -f print-auto.ja
                    114:        ${OXWEAVE} usage  <${CONTRIB}/names.rr | ${OXGENTEXI} --category print --ja --upnode "Print (Standard Mathematical Functions)" ${OPTGENTEXI} >print-auto.ja
                    115:
                    116: ### poly
                    117: poly-auto.en : ${CONTRIB}/names.rr
                    118:        ${RM} -f poly-auto.en
                    119:        ${OXWEAVE} usage  <${CONTRIB}/names.rr | ${OXGENTEXI} --category poly --en --upnode "Polynomials (Standard Mathematical Functions)" ${OPTGENTEXI} >poly-auto.en
                    120: poly-auto.ja : ${CONTRIB}/names.rr
                    121:        ${RM} -f poly-auto.ja
                    122:        ${OXWEAVE} usage  <${CONTRIB}/names.rr | ${OXGENTEXI} --category poly --ja --upnode "Polynomials (Standard Mathematical Functions)" ${OPTGENTEXI} >poly-auto.ja
                    123:
                    124: ### glib
                    125: glib-auto.en : ${ASIRLIB}/glib
                    126:        ${RM} -f glib-auto.en
                    127:        cat ${ASIRLIB}/glib | ${OXWEAVE} usage | ${OXGENTEXI}  --category glib --en --upnode "Graphic Library (2 dimensional)" ${OPTGENTEXI} >glib-auto.en
                    128: glib-auto.ja : ${ASIRLIB}/glib
                    129:        ${RM} -f glib-auto.ja
                    130:        cat ${ASIRLIB}/glib | ${OXWEAVE} usage  | ${OXGENTEXI}   --category glib  --ja --upnode "Graphic Library (2 dimensional)" ${OPTGENTEXI} >glib-auto.ja
                    131:
                    132: ### util
                    133: util-auto.en :  ${CONTRIB}/names.rr
                    134:        ${RM} -f util-auto.en
                    135:        cat ${CONTRIB}/names.rr | ${OXWEAVE} usage | ${OXGENTEXI}  --category util --en --upnode "Utility Functions" ${OPTGENTEXI} >util-auto.en
                    136: util-auto.ja : ${CONTRIB}/names.rr
                    137:        ${RM} -f util-auto.ja
                    138:        cat ${CONTRIB}/names.rr | ${OXWEAVE} usage  | ${OXGENTEXI}   --category util  --ja --upnode "Utility Functions" ${OPTGENTEXI} >util-auto.ja
                    139: ### oxshell
                    140: oxshell-auto.en :  ${CONTRIB}/oxshell.rr
                    141:        ${RM} -f oxshell-auto.en
                    142:        cat ${CONTRIB}/oxshell.rr | ${OXWEAVE} usage | ${OXGENTEXI}  --category oxshell --en --upnode "Oxshell Functions" ${OPTGENTEXI} >oxshell-auto.en
                    143: oxshell-auto.ja : ${CONTRIB}/oxshell.rr
                    144:        ${RM} -f oxshell-auto.ja
                    145:        cat ${CONTRIB}/oxshell.rr | ${OXWEAVE} usage  | ${OXGENTEXI}   --category oxshell  --ja --upnode "Oxshell Functions" ${OPTGENTEXI} >oxshell-auto.ja
                    146:
                    147: ### Generating online manual.  gen-help
                    148: gen-help-en: ${ENSRCS} ${ASIRDOC}/extract_func ${ENAUTO}
                    149:        -${RM} -rf tmp-en help-en
                    150:        mkdir help-en tmp-en
                    151:        cp cman-en.texi ${ENSRCS} ${ENAUTO} tmp-en
                    152:        -(cd tmp-en; makeinfo --force cman-en.texi)
                    153:        (cd help-en; for i in ../tmp-en/asir-contrib*; do ../${ASIRDOC}/extract_func $$i; done)
                    154:        -for i in ${SUBDIRS}; do (cd $$i; make gen-help-en); done
                    155:
                    156: gen-help-ja: ${JASRCS} ${ASIRDOC}/extract_func ${JAAUTO}
                    157:        -${RM} -rf tmp-ja help-ja
                    158:        mkdir help-ja tmp-ja
                    159:        for i in cman-ja.texi ${JASRCS} ${JAAUTO}; do nkf -e $$i > tmp-ja/$$i; done
                    160:        -(cd tmp-ja; makeinfo --force cman-ja.texi)
                    161:        (cd help-ja; for i in ../tmp-ja/asir-contrib*; do ../${ASIRDOC}/extract_func -j $$i; done)
                    162:        -for i in ${SUBDIRS}; do (cd $$i; make gen-help-ja); done
                    163:
                    164: gen-html-en: gen-help-en
                    165:        -${RM} -rf html-en
                    166:        -mkdir html-en
                    167:        -cp tmp-en/*.texi tmp-en/*.en html-en
                    168:        -(cd html-en; ${TEXI2HTML} cman-en.texi)
                    169:        -(cd html-en; rm -f *.en cman-en.texi)
                    170:
                    171: gen-html-ja: gen-help-ja
                    172:        -mkdir html-ja
                    173:        -cp tmp-ja/*.texi tmp-ja/*.ja html-ja
                    174:        -cp tmp-ja/cman-ja.texi html-ja/cman-ja.texi
                    175:        -(cd html-ja; ${TEXI2HTML} cman-ja.texi)
                    176:        -(cd html-ja; rm -f *.ja cman-ja.texi)
                    177:
                    178: gen-dvi-ja:  cman-ja.dvi
                    179: gen-dvi-en:  cman-en.dvi
                    180: gen-pdf-ja:  cman-ja.pdf
                    181: gen-pdf-en:  cman-en.pdf
                    182: gen-ps-ja:  cman-ja.ps
                    183: gen-ps-en:  cman-en.ps
                    184: cman-ja.dvi: ${JASRCS} ${JAAUTO}  cman-ja.texi
                    185:        -ptex cman-ja.texi
                    186:        -ptex cman-ja.texi
                    187: cman-en.dvi: ${ENSRCS} ${ENAUTO} cman-en.texi
                    188:        -tex cman-en.texi
                    189:        -tex cman-en.texi
                    190: cman-ja.pdf: cman-ja.dvi
                    191:        -${DVIPDF} cman-ja
                    192: cman-en.pdf: cman-en.dvi
                    193:        -${DVIPDF} cman-en
                    194: cman-ja.ps: cman-ja.dvi
                    195:        -${DVIPS} cman-ja >cman-ja.ps
                    196: cman-en.ps: cman-en.ps
                    197:        -${DVIPS} cman-en >cman-en.ps
                    198:
                    199: install-help-ja: gen-help-ja
                    200:        ${RM} -rf ${INSTALL_lib}/asir/help-jp/xm.help
                    201:        mkdir ${INSTALL_lib}/asir/help-jp/xm.help
                    202:        -cp -r -f help-ja/* ${INSTALL_lib}/asir/help-jp/xm.help
                    203: install-help-en: gen-help-en
                    204:        ${RM} -rf ${INSTALL_lib}/asir/help-eg/xm.help
                    205:        mkdir ${INSTALL_lib}/asir/help-eg/xm.help
                    206:        -cp -r -f help-en/* ${INSTALL_lib}/asir/help-eg/xm.help
                    207: install-html-ja: gen-html-ja
                    208:        -mkdir ${INSTALL_doc}/asir-contrib
                    209:        -( tar cf - html-ja | (cd ${INSTALL_doc}/asir-contrib ; tar xf - ; mv help-ja cman-html-ja))
                    210: install-html-en: gen-html-en
                    211:        -mkdir ${INSTALL_doc}/asir-contrib
                    212:        -( tar cf - html-en | (cd ${INSTALL_doc}/asir-contrib ; tar xf - ; mv help-en cman-html-en))
                    213: install-dvi-ja: gen-dvi-ja
                    214:        -mkdir ${INSTALL_lib}/asir-contrib
                    215:        -cp cman-ja.dvi ${INSTALL_doc}/asir-contrib/cman-ja.dvi
                    216: install-dvi-en: gen-dvi-en
                    217:        -mkdir ${INSTALL_lib}/asir-contrib
                    218:        -cp cman-en.dvi ${INSTALL_doc}/asir-contrib/cman-en.dvi
                    219: install-ps-ja: gen-ps-ja
                    220:        -mkdir ${INSTALL_lib}/asir-contrib
                    221:        -cp cman-ja.ps ${INSTALL_doc}/asir-contrib/cman-ja.ps
                    222: install-ps-en: gen-ps-en
                    223:        -mkdir ${INSTALL_lib}/asir-contrib
                    224:        -cp cman-en.ps ${INSTALL_doc}/asir-contrib/cman-en.ps
                    225: install-pdf-ja: gen-pdf-ja
                    226:        -mkdir ${INSTALL_lib}/asir-contrib
                    227:        -cp cman-ja.pdf ${INSTALL_doc}/asir-contrib/cman-ja.pdf
                    228: install-pdf-en: gen-pdf-en
                    229:        -mkdir ${INSTALL_lib}/asir-contrib
                    230:        -cp cman-en.pdf ${INSTALL_doc}/asir-contrib/cman-en.pdf
                    231:
                    232: clean:
                    233:        ${RM} -f ${JAAUTO} ${ENAUTO} gentexi-in.tmp gentexi-out.tmp
                    234:        ${RM} -f *.aux *.cp *.dvi *.fn *.ky *.log *.pg *.toc *.tp *.vr *~
                    235:        ${RM} -f  *.en *.ja
                    236:        ${RM} -f cman-en.ps cman-ja.ps cman-en.pdf cman-ja.pdf
                    237:        ${RM} -rf help-ja help-en tmp-en tmp-ja html-en html-ja

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