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

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

1.4     ! takayama    1: # $OpenXM: OpenXM/src/asir-contrib/packages/doc/M/Makefile.in,v 1.3 2009/02/15 02:19:40 takayama Exp $
1.1       takayama    2: PTEX=@PTEX@
                      3: DVIPDF=@DVIPDF@
                      4: # Original file was ../Makefile.common
                      5: # Targets
                      6: # gen-texi-en, gen-texi-ja : generating texi files.
                      7: # gen-html-en,  gen-html-ja :
                      8: #        Generate HTML documents under html-en and html-ja
                      9: # gen-help-en,  gen-help-ja :
                     10: #        Generate online help files under help-en, help-ja
                     11: # gen-dvi-en, gen-dvi-ja : generating dvi, ps, pdf files here.
                     12: # gen-ps-en,  gen-ps-ja  :
                     13: # gen-pdf-en, gen-pdf-ja :
                     14: #
                     15: # install-help-en, -ja
                     16: #        Installing online help to OpenXM/lib/asir/help-eg/xm.help
                     17: #        Installing online help to OpenXM/lib/asir/help-jp/xm.help
                     18: # install-html-en, -ja
                     19: #        Copy html help to OpenXM/doc/asir-contrib/ja, en
                     20: # install-dvi-en, -ja; install-ps-en, -ja; install-pdf-en, -ja;
                     21: #        Copy the documents in dvi and ps to OpenXM/doc/asir-contrib/ja, en
                     22: #
                     23: # NOTE: install-help should be executed after installing asir2000.
                     24: ########################################################################
                     25: #  How to add new documents in the category xxx
                     26: # "xxx*.texi <--- xxx.oxweave (manually written) + xxx*-auto.{en,ja} (automatic)"
                     27: #   (1) "xxx.oxweave" --> xxx.en and xxx.ja
                     28: #       xxx-auto.en and xxx-auto.ja should be included from
                     29: #       xxx.en and xxx.ja  (JASRCS, ENSRCS)
                     30: #     NOTE: xxx.oxweave might be embedded in xxx.rr or xxx,
                     31: #           but this style is obsolete.
                     32: #   (2) "xxx.rr" or "xxx" --> xxx-auto.en and xxx-auto.ja
                     33: #       (JAAUTO, ENAUTO)
                     34: #       xxx-auto*.texi's are extracted from xxx or xxx.rr
                     35: #   (3) xxx.en and xxx.ja should be included from cman.texi
                     36: #     and cman-en.texi
                     37: #  cf.  glib*  base*
                     38: ########################################################################
                     39: # They are configured and set by the upper level Makefile
                     40: INSTALL_doc=${OpenXM_HOME}/doc
                     41: INSTALL_lib=${OpenXM_HOME}/lib
                     42: OXWEAVE=${OpenXM_HOME}/bin/oxweave
                     43: OXGENTEXI=${OpenXM_HOME}/bin/oxgentexi
1.3       takayama   44: OXREPLACE=${OpenXM_HOME}/bin/oxreplace
1.1       takayama   45: #
                     46: OpenXM_ROOT=../../../../../../OpenXM
                     47: ASIRDOC=${OpenXM_ROOT}/src/asir-doc
                     48: ASIRLIB=${OpenXM_ROOT}/../OpenXM_contrib2/asir2000/lib
                     49: CONTRIB=${OpenXM_ROOT}/src/asir-contrib/packages/src
                     50: OPTGENTEXI= --include
                     51: #OPTGENTEXI= --include --example
                     52: ## PS documents are installed under ${OpenXM_doc}/asir-contrib
                     53: DVIPS=dvips -f
1.2       takayama   54: TEXI2HTML=texi2html -menu
1.1       takayama   55: RM=rm
                     56: NKF=nkf
                     57:
                     58: .SUFFIXES: .en .ja .oxw .dvi .pdf
                     59:
                     60: .oxw.en:
                     61:        ${RM} -f ${<:.oxw=.en}
                     62:        ${OXWEAVE} C en < $< > ${<:.oxw=.en}
                     63:
                     64: .oxw.ja:
                     65:        ${RM} -f ${<:.oxw=.ja}
                     66:        ${OXWEAVE} C ja < $< > ${<:.oxw=.ja}
                     67:
                     68: .dvi.pdf:
                     69:        ${DVIPDF} $<
                     70:
                     71: gen-texi: gen-texi-ja gen-texi-en
                     72: gen-texi-ja: ${JASRCS} ${JAAUTO} ${MYNAME}-ja.texi
                     73: gen-texi-en: ${ENSRCS} ${ENAUTO} ${MYNAME}-en.texi
                     74:
                     75: ### Generating online manual.  gen-help
                     76: gen-help-en: ${ENSRCS} ${ASIRDOC}/extract_func ${ENAUTO} ${MYNAME}-en.texi
                     77:        -${RM} -rf tmp-en help-en
                     78:        mkdir help-en tmp-en
                     79:        cp ${MYNAME}-en.texi ${ENSRCS} ${ENAUTO} tmp-en
                     80:        -(cd tmp-en; makeinfo --force ${MYNAME}-en.texi)
                     81:        (cd help-en; for i in ../tmp-en/asir-contrib*; do ../${ASIRDOC}/extract_func $$i; done)
                     82:
                     83: gen-help-ja: ${JASRCS} ${ASIRDOC}/extract_func ${JAAUTO} ${MYNAME}-ja.texi
                     84:        -${RM} -rf tmp-ja help-ja
                     85:        mkdir help-ja tmp-ja
                     86:        for i in ${MYNAME}-ja.texi ${JASRCS} ${JAAUTO}; do nkf -e $$i > tmp-ja/$$i; done
                     87:        -(cd tmp-ja; makeinfo --force ${MYNAME}-ja.texi)
                     88:        (cd help-ja; for i in ../tmp-ja/asir-contrib*; do ../${ASIRDOC}/extract_func -j $$i; done)
                     89:
1.2       takayama   90: gen-html-en: html-en/${MYNAME}-en.html gen-help-en
                     91: html-en/${MYNAME}-en.html: ${ENSRCS} ${ENAUTO} ${MYNAME}-en.texi
1.1       takayama   92:        -${RM} -rf html-en
                     93:        -mkdir html-en
                     94:        -cp tmp-en/*.texi tmp-en/*.en html-en
                     95:        -(cd html-en; ${TEXI2HTML} ${MYNAME}-en.texi)
                     96:        -(cd html-en; rm -f *.en ${MYNAME}-en.texi)
                     97:
1.2       takayama   98: gen-html-ja: html-ja/${MYNAME}-ja.html gen-help-ja
                     99: html-ja/${MYNAME}-ja.html: ${JASRCS} ${JAAUTO} ${MYNAME}-ja.texi
1.1       takayama  100:        -mkdir html-ja
                    101:        -cp tmp-ja/*.texi tmp-ja/*.ja html-ja
                    102:        -cp tmp-ja/${MYNAME}-ja.texi html-ja/${MYNAME}-ja.texi
                    103:        -(cd html-ja; ${TEXI2HTML} ${MYNAME}-ja.texi)
1.3       takayama  104:        -(cd html-ja; ${OXREPLACE} --old '<html>' --new '<html> <meta http-equiv="Content-Type" content="text/html; charset=euc-jp">' ${MYNAME}-ja.html)
1.4     ! takayama  105:        -(cd html-ja; ${OXREPLACE} --old '<HTML>' --new '<HTML> <meta http-equiv="Content-Type" content="text/html; charset=euc-jp">' ${MYNAME}-ja.html)
1.3       takayama  106:        -(cd html-ja; rm -f *.ja ${MYNAME}-ja.texi ${MYNAME}*.old)
1.1       takayama  107:
                    108: gen-dvi-ja:  ${MYNAME}-ja.dvi
                    109: gen-dvi-en:  ${MYNAME}-en.dvi
                    110: gen-pdf-ja:  ${MYNAME}-ja.pdf
                    111: gen-pdf-en:  ${MYNAME}-en.pdf
                    112: gen-ps-ja:  ${MYNAME}-ja.ps
                    113: gen-ps-en:  ${MYNAME}-en.ps
                    114: ${MYNAME}-ja.dvi: ${JASRCS} ${JAAUTO}  ${MYNAME}-ja.texi
                    115:        -${PTEX} ${MYNAME}-ja.texi
                    116:        -${PTEX} ${MYNAME}-ja.texi
                    117: ${MYNAME}-en.dvi: ${ENSRCS} ${ENAUTO} ${MYNAME}-en.texi
                    118:        -tex ${MYNAME}-en.texi
                    119:        -tex ${MYNAME}-en.texi
                    120: ${MYNAME}-ja.pdf: ${MYNAME}-ja.dvi
                    121:        -${DVIPDF} ${MYNAME}-ja
                    122: ${MYNAME}-en.pdf: ${MYNAME}-en.dvi
                    123:        -${DVIPDF} ${MYNAME}-en
                    124: ${MYNAME}-ja.ps: ${MYNAME}-ja.dvi
                    125:        -${DVIPS} ${MYNAME}-ja >${MYNAME}-ja.ps
                    126: ${MYNAME}-en.ps: ${MYNAME}-en.ps
                    127:        -${DVIPS} ${MYNAME}-en >${MYNAME}-en.ps
                    128:
                    129: install-help-ja: gen-help-ja
                    130:        -mkdir ${INSTALL_lib}/asir/help-jp/xm.help
                    131:        -cp -r -f help-ja/* ${INSTALL_lib}/asir/help-jp/xm.help
                    132: install-help-en: gen-help-en
                    133:        -mkdir ${INSTALL_lib}/asir/help-eg/xm.help
                    134:        -cp -r -f help-en/* ${INSTALL_lib}/asir/help-eg/xm.help
                    135:
1.2       takayama  136: install-html-ja: gen-html-ja ${INSTALL_doc}/asir-contrib/ja/${MYNAME}-html/${MYNAME}-ja.html
                    137: ${INSTALL_doc}/asir-contrib/ja/${MYNAME}-html/${MYNAME}-ja.html: html-ja/${MYNAME}-ja.html
1.1       takayama  138:        -${RM} -rf ${INSTALL_doc}/asir-contrib/ja/${MYNAME}-html
                    139:        -mkdir -p ${INSTALL_doc}/asir-contrib/ja
                    140:        -( tar cf - html-ja | (cd ${INSTALL_doc}/asir-contrib/ja ; tar xf - ; mv html-ja ${MYNAME}-html))
                    141:
1.2       takayama  142: install-html-en: gen-html-en ${INSTALL_doc}/asir-contrib/en/${MYNAME}-html/${MYNAME}-en.html
                    143: ${INSTALL_doc}/asir-contrib/en/${MYNAME}-html/${MYNAME}-en.html: html-en/${MYNAME}-en.html
1.1       takayama  144:        -${RM} -rf ${INSTALL_doc}/asir-contrib/en/${MYNAME}-html
                    145:        -mkdir -p ${INSTALL_doc}/asir-contrib/en
                    146:        -( tar cf - html-en | (cd ${INSTALL_doc}/asir-contrib/en ; tar xf - ; mv html-en ${MYNAME}-html))
                    147:
                    148: install-dvi-ps-pdf-ja: install-dvi-ja install-ps-ja install-pdf-ja
                    149: install-dvi-ps-pdf-en: install-dvi-en install-ps-en install-pdf-en
                    150: install-dvi-ja: gen-dvi-ja
                    151:        -mkdir -p ${INSTALL_lib}/asir-contrib/ja
                    152:        -cp ${MYNAME}-ja.dvi ${INSTALL_doc}/asir-contrib/ja/${MYNAME}-ja.dvi
                    153: install-dvi-en: gen-dvi-en
                    154:        -mkdir -p ${INSTALL_lib}/asir-contrib/en
                    155:        -cp ${MYNAME}-en.dvi ${INSTALL_doc}/asir-contrib/en/${MYNAME}-en.dvi
                    156: install-ps-ja: gen-ps-ja
                    157:        -mkdir -p ${INSTALL_lib}/asir-contrib/ja
                    158:        -cp ${MYNAME}-ja.ps ${INSTALL_doc}/asir-contrib/ja/${MYNAME}-ja.ps
                    159: install-ps-en: gen-ps-en
                    160:        -mkdir -p ${INSTALL_lib}/asir-contrib/en
                    161:        -cp ${MYNAME}-en.ps ${INSTALL_doc}/asir-contrib/en/${MYNAME}-en.ps
                    162: install-pdf-ja: gen-pdf-ja
                    163:        -mkdir -p ${INSTALL_lib}/asir-contrib/ja
                    164:        -cp ${MYNAME}-ja.pdf ${INSTALL_doc}/asir-contrib/ja/${MYNAME}-ja.pdf
                    165: install-pdf-en: gen-pdf-en
                    166:        -mkdir -p ${INSTALL_lib}/asir-contrib/en
                    167:        -cp ${MYNAME}-en.pdf ${INSTALL_doc}/asir-contrib/en/${MYNAME}-en.pdf
                    168:
                    169: clean: clean_private
                    170:        ${RM} -f ${JAAUTO} ${ENAUTO} gentexi-in.tmp gentexi-out.tmp
                    171:        ${RM} -f *.aux *.cp *.dvi *.fn *.ky *.log *.pg *.toc *.tp *.vr *~
                    172:        ${RM} -f  *.en *.ja
                    173:        ${RM} -f ${MYNAME}-en.ps ${MYNAME}-ja.ps ${MYNAME}-en.pdf ${MYNAME}-ja.pdf
                    174:        ${RM} -rf help-ja help-en tmp-en tmp-ja html-en html-ja

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