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