Annotation of OpenXM/src/asir-contrib/packages/doc/M/Makefile.in, Revision 1.1
1.1 ! takayama 1: # $OpenXM$
! 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
! 44: #
! 45: OpenXM_ROOT=../../../../../../OpenXM
! 46: ASIRDOC=${OpenXM_ROOT}/src/asir-doc
! 47: ASIRLIB=${OpenXM_ROOT}/../OpenXM_contrib2/asir2000/lib
! 48: CONTRIB=${OpenXM_ROOT}/src/asir-contrib/packages/src
! 49: OPTGENTEXI= --include
! 50: #OPTGENTEXI= --include --example
! 51: ## PS documents are installed under ${OpenXM_doc}/asir-contrib
! 52: DVIPS=dvips -f
! 53: TEXI2HTML=texi2html -menu -split_node
! 54: RM=rm
! 55: NKF=nkf
! 56:
! 57: .SUFFIXES: .en .ja .oxw .dvi .pdf
! 58:
! 59: .oxw.en:
! 60: ${RM} -f ${<:.oxw=.en}
! 61: ${OXWEAVE} C en < $< > ${<:.oxw=.en}
! 62:
! 63: .oxw.ja:
! 64: ${RM} -f ${<:.oxw=.ja}
! 65: ${OXWEAVE} C ja < $< > ${<:.oxw=.ja}
! 66:
! 67: .dvi.pdf:
! 68: ${DVIPDF} $<
! 69:
! 70: gen-texi: gen-texi-ja gen-texi-en
! 71: gen-texi-ja: ${JASRCS} ${JAAUTO} ${MYNAME}-ja.texi
! 72: gen-texi-en: ${ENSRCS} ${ENAUTO} ${MYNAME}-en.texi
! 73:
! 74: ### Generating online manual. gen-help
! 75: gen-help-en: ${ENSRCS} ${ASIRDOC}/extract_func ${ENAUTO} ${MYNAME}-en.texi
! 76: -${RM} -rf tmp-en help-en
! 77: mkdir help-en tmp-en
! 78: cp ${MYNAME}-en.texi ${ENSRCS} ${ENAUTO} tmp-en
! 79: -(cd tmp-en; makeinfo --force ${MYNAME}-en.texi)
! 80: (cd help-en; for i in ../tmp-en/asir-contrib*; do ../${ASIRDOC}/extract_func $$i; done)
! 81:
! 82: gen-help-ja: ${JASRCS} ${ASIRDOC}/extract_func ${JAAUTO} ${MYNAME}-ja.texi
! 83: -${RM} -rf tmp-ja help-ja
! 84: mkdir help-ja tmp-ja
! 85: for i in ${MYNAME}-ja.texi ${JASRCS} ${JAAUTO}; do nkf -e $$i > tmp-ja/$$i; done
! 86: -(cd tmp-ja; makeinfo --force ${MYNAME}-ja.texi)
! 87: (cd help-ja; for i in ../tmp-ja/asir-contrib*; do ../${ASIRDOC}/extract_func -j $$i; done)
! 88:
! 89: gen-html-en: html-en/${MYNAME}-en_toc.html gen-help-en
! 90: html-en/${MYNAME}-en_toc.html: ${ENSRCS} ${ENAUTO} ${MYNAME}-en.texi
! 91: -${RM} -rf html-en
! 92: -mkdir html-en
! 93: -cp tmp-en/*.texi tmp-en/*.en html-en
! 94: -(cd html-en; ${TEXI2HTML} ${MYNAME}-en.texi)
! 95: -(cd html-en; rm -f *.en ${MYNAME}-en.texi)
! 96:
! 97: gen-html-ja: html-ja/${MYNAME}-ja_toc.html gen-help-ja
! 98: html-ja/${MYNAME}-ja_toc.html: ${JASRCS} ${JAAUTO} ${MYNAME}-ja.texi
! 99: -mkdir html-ja
! 100: -cp tmp-ja/*.texi tmp-ja/*.ja html-ja
! 101: -cp tmp-ja/${MYNAME}-ja.texi html-ja/${MYNAME}-ja.texi
! 102: -(cd html-ja; ${TEXI2HTML} ${MYNAME}-ja.texi)
! 103: -(cd html-ja; rm -f *.ja ${MYNAME}-ja.texi)
! 104:
! 105: gen-dvi-ja: ${MYNAME}-ja.dvi
! 106: gen-dvi-en: ${MYNAME}-en.dvi
! 107: gen-pdf-ja: ${MYNAME}-ja.pdf
! 108: gen-pdf-en: ${MYNAME}-en.pdf
! 109: gen-ps-ja: ${MYNAME}-ja.ps
! 110: gen-ps-en: ${MYNAME}-en.ps
! 111: ${MYNAME}-ja.dvi: ${JASRCS} ${JAAUTO} ${MYNAME}-ja.texi
! 112: -${PTEX} ${MYNAME}-ja.texi
! 113: -${PTEX} ${MYNAME}-ja.texi
! 114: ${MYNAME}-en.dvi: ${ENSRCS} ${ENAUTO} ${MYNAME}-en.texi
! 115: -tex ${MYNAME}-en.texi
! 116: -tex ${MYNAME}-en.texi
! 117: ${MYNAME}-ja.pdf: ${MYNAME}-ja.dvi
! 118: -${DVIPDF} ${MYNAME}-ja
! 119: ${MYNAME}-en.pdf: ${MYNAME}-en.dvi
! 120: -${DVIPDF} ${MYNAME}-en
! 121: ${MYNAME}-ja.ps: ${MYNAME}-ja.dvi
! 122: -${DVIPS} ${MYNAME}-ja >${MYNAME}-ja.ps
! 123: ${MYNAME}-en.ps: ${MYNAME}-en.ps
! 124: -${DVIPS} ${MYNAME}-en >${MYNAME}-en.ps
! 125:
! 126: install-help-ja: gen-help-ja
! 127: -mkdir ${INSTALL_lib}/asir/help-jp/xm.help
! 128: -cp -r -f help-ja/* ${INSTALL_lib}/asir/help-jp/xm.help
! 129: install-help-en: gen-help-en
! 130: -mkdir ${INSTALL_lib}/asir/help-eg/xm.help
! 131: -cp -r -f help-en/* ${INSTALL_lib}/asir/help-eg/xm.help
! 132:
! 133: install-html-ja: gen-html-ja ${INSTALL_doc}/asir-contrib/ja/${MYNAME}-html/${MYNAME}-ja_toc.html
! 134: ${INSTALL_doc}/asir-contrib/ja/${MYNAME}-html/${MYNAME}-ja_toc.html: html-ja/${MYNAME}-ja_toc.html
! 135: -${RM} -rf ${INSTALL_doc}/asir-contrib/ja/${MYNAME}-html
! 136: -mkdir -p ${INSTALL_doc}/asir-contrib/ja
! 137: -( tar cf - html-ja | (cd ${INSTALL_doc}/asir-contrib/ja ; tar xf - ; mv html-ja ${MYNAME}-html))
! 138:
! 139: install-html-en: gen-html-en ${INSTALL_doc}/asir-contrib/en/${MYNAME}-html/${MYNAME}-en_toc.html
! 140: ${INSTALL_doc}/asir-contrib/en/${MYNAME}-html/${MYNAME}-en_toc.html: html-en/${MYNAME}-en_toc.html
! 141: -${RM} -rf ${INSTALL_doc}/asir-contrib/en/${MYNAME}-html
! 142: -mkdir -p ${INSTALL_doc}/asir-contrib/en
! 143: -( tar cf - html-en | (cd ${INSTALL_doc}/asir-contrib/en ; tar xf - ; mv html-en ${MYNAME}-html))
! 144:
! 145: install-dvi-ps-pdf-ja: install-dvi-ja install-ps-ja install-pdf-ja
! 146: install-dvi-ps-pdf-en: install-dvi-en install-ps-en install-pdf-en
! 147: install-dvi-ja: gen-dvi-ja
! 148: -mkdir -p ${INSTALL_lib}/asir-contrib/ja
! 149: -cp ${MYNAME}-ja.dvi ${INSTALL_doc}/asir-contrib/ja/${MYNAME}-ja.dvi
! 150: install-dvi-en: gen-dvi-en
! 151: -mkdir -p ${INSTALL_lib}/asir-contrib/en
! 152: -cp ${MYNAME}-en.dvi ${INSTALL_doc}/asir-contrib/en/${MYNAME}-en.dvi
! 153: install-ps-ja: gen-ps-ja
! 154: -mkdir -p ${INSTALL_lib}/asir-contrib/ja
! 155: -cp ${MYNAME}-ja.ps ${INSTALL_doc}/asir-contrib/ja/${MYNAME}-ja.ps
! 156: install-ps-en: gen-ps-en
! 157: -mkdir -p ${INSTALL_lib}/asir-contrib/en
! 158: -cp ${MYNAME}-en.ps ${INSTALL_doc}/asir-contrib/en/${MYNAME}-en.ps
! 159: install-pdf-ja: gen-pdf-ja
! 160: -mkdir -p ${INSTALL_lib}/asir-contrib/ja
! 161: -cp ${MYNAME}-ja.pdf ${INSTALL_doc}/asir-contrib/ja/${MYNAME}-ja.pdf
! 162: install-pdf-en: gen-pdf-en
! 163: -mkdir -p ${INSTALL_lib}/asir-contrib/en
! 164: -cp ${MYNAME}-en.pdf ${INSTALL_doc}/asir-contrib/en/${MYNAME}-en.pdf
! 165:
! 166: clean: clean_private
! 167: ${RM} -f ${JAAUTO} ${ENAUTO} gentexi-in.tmp gentexi-out.tmp
! 168: ${RM} -f *.aux *.cp *.dvi *.fn *.ky *.log *.pg *.toc *.tp *.vr *~
! 169: ${RM} -f *.en *.ja
! 170: ${RM} -f ${MYNAME}-en.ps ${MYNAME}-ja.ps ${MYNAME}-en.pdf ${MYNAME}-ja.pdf
! 171: ${RM} -rf help-ja help-en tmp-en tmp-ja html-en html-ja
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>