Annotation of OpenXM/src/asir-contrib/packages/doc/todo_parametrize/Makefile, Revision 1.1
1.1 ! takayama 1: #$OpenXM$
! 2:
! 3: # install-help : all
! 4: # Installing online help to OpenXM/lib/asir/help-*
! 5: # install-html-help
! 6: # Copy html help to OpenXM/doc/asir-contrib
! 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 help files.
! 11: OpenXM_ROOT=../../../../../../OpenXM
! 12: ASIRDOC=../../../../asir-doc
! 13: ASIRLIB=${OpenXM_ROOT}/../OpenXM_contrib2/asir2000/lib
! 14: CONTRIB=../../src
! 15: #The belows are set by the upper Makefile
! 16: INSTALL_doc=${HOME}/OX4/OpenXM/doc
! 17: INSTALL_lib=${HOME}/OX4/OpenXM/lib
! 18: OXWEAVE=oxweave
! 19: DVIPS=dvips -f
! 20: TEXI2HTML=texi2html -menu -split_node
! 21: RM=rm
! 22:
! 23: ##
! 24: DVIPDF=dvipdfm
! 25:
! 26: INSTALL_doc_name=todo_parametrize
! 27: INSTALL_doc_contrib_ja=${INSTALL_doc}/asir-contrib/html-ja/${INSTALL_doc_name}
! 28: INSTALL_doc_contrib_en=${INSTALL_doc}/asir-contrib/html-en/${INSTALL_doc_name}
! 29:
! 30: SRC_JA=todo_parametrize_ja.texi
! 31: SRC_EN=
! 32: TOP_JA=todo_parametrize_ja.texi
! 33: TOP_EN=todo_parametrize_en.texi
! 34:
! 35: TOP_JA_DVI=${TOP_JA:.texi=.dvi}
! 36: TOP_EN_DVI=${TOP_EN:.texi=.dvi}
! 37: TOP_JA_PDF=${TOP_JA:.texi=.pdf}
! 38: TOP_EN_PDF=${TOP_EN:.texi=.pdf}
! 39:
! 40: all :
! 41: @echo "Type in ptex todo_parametrize_ja.texi to generate the manual in dvi format"
! 42:
! 43:
! 44: ### Generating online manual
! 45: gen-help-en: ${SRC_EN}
! 46: -${RM} -rf tmp-en help-en
! 47: -mkdir help-en tmp-en
! 48: -cp ${SRC_EN} tmp-en
! 49: -(cd tmp-en; makeinfo --force ${TOP_EN})
! 50: -(cd help-en; for i in ../tmp-en/todo_parametrize_en; do ../${ASIRDOC}/extract_func $$i; done)
! 51:
! 52: gen-help-ja: ${SRC_JA}
! 53: -${RM} -rf tmp-ja help-ja
! 54: -mkdir help-ja tmp-ja
! 55: -for i in ${SRC_JA} ; do nkf -e $$i > tmp-ja/$$i; done
! 56: -(cd tmp-ja; makeinfo --force ${TOP_JA})
! 57: -(cd help-ja; for i in ../tmp-ja/todo_parametrize_ja; do ../${ASIRDOC}/extract_func -j $$i; done)
! 58:
! 59: ### Generate html manual
! 60: gen-html-en: gen-help-en
! 61: -${RM} -rf html-en
! 62: -mkdir html-en
! 63: -cp tmp-en/*.texi tmp-en/*.en html-en
! 64: -(cd html-en; ${TEXI2HTML} ${TOP_EN})
! 65:
! 66: gen-html-ja: gen-help-ja
! 67: -${RM} -rf html-ja
! 68: -mkdir html-ja
! 69: -cp tmp-ja/*.texi tmp-ja/*.ja html-ja
! 70: -(cd html-ja; ${TEXI2HTML} ${TOP_JA})
! 71:
! 72: ### Generate dvi
! 73: gen-dvi: ${SRC_EN} ${SRC_JA}
! 74: -@if [ -f ${TOP_JA} ] ; then \
! 75: ptex ${TOP_JA} ; \
! 76: ptex ${TOP_JA} ; \
! 77: fi
! 78: -@if [ -f ${TOP_EN} ] ; then \
! 79: tex ${TOP_EN} ; \
! 80: tex ${TOP_EN} ; \
! 81: fi
! 82:
! 83: install-help:
! 84: -make install-help-en
! 85: -make install-help-ja
! 86:
! 87: install-help-ja: gen-help-ja
! 88: -cp -r -f help-ja/* ${INSTALL_lib}/asir/help-jp/xm.help
! 89:
! 90: install-help-en: gen-help-en
! 91: -cp -r -f help-en/* ${INSTALL_lib}/asir/help-eg/xm.help
! 92:
! 93: install-html-help: gen-html-en gen-html-ja
! 94: -mkdir ${INSTALL_doc_contrib_en}
! 95: -((cd html-en; tar cf - .) | (cd ${INSTALL_doc_contrib_en}; tar xf -))
! 96: -mkdir ${INSTALL_doc_contrib_ja}
! 97: -((cd html-ja; tar cf - .) | (cd ${INSTALL_doc_contrib_ja}; tar xf -))
! 98:
! 99:
! 100: install-document2 : gen-dvi
! 101: -cp ${TOP_JA_DVI} ${INSTALL_doc}/asir-contrib/
! 102: -$(DVIPDF) ${TOP_JA_DVI}
! 103: -cp ${TOP_JA_PDF} ${INSTALL_doc}/asir-contrib/
! 104: #
! 105: -cp ${TOP_EN_DVI} ${INSTALL_doc}/asir-contrib/
! 106: -$(DVIPDF) ${TOP_EN_DVI}
! 107: -cp ${TOP_EN_PDF} ${INSTALL_doc}/asir-contrib/
! 108:
! 109: clean:
! 110: -${RM} -rf ./.done_install ./.done_install_document
! 111: -${RM} -f *.aux *.cp *.dvi *.fn *.ky *.log *.pg *.toc *.tp *.vr *.pdf *~
! 112: -${RM} -f *.en *.ja
! 113: -${RM} -rf help-ja help-en tmp-en tmp-ja html-en html-ja
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>