[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.6

1.6     ! ohara       1: # $OpenXM: OpenXM/src/asir-contrib/packages/doc/M/Makefile.in,v 1.5 2009/02/20 03:05:26 takayama Exp $
1.1       takayama    2: # Original file was ../Makefile.common
                      3: # Targets
1.6     ! ohara       4: # gen-texi : generating texi files.
        !             5: # gen-html : generating HTML documents under html-{ja,en}
        !             6: # gen-help : generating online help files under help-{ja,en}
        !             7: # gen-pdf  : generating dvi, ps, pdf files here.
1.1       takayama    8: #
1.6     ! ohara       9: # install-help
        !            10: #        Installing online help to OpenXM/lib/asir/help-{ja,en}/xm.help
        !            11: # install-document
        !            12: #        Copy html help and the documents in dvi, ps and pdf
        !            13: #        to OpenXM/doc/asir-contrib/{ja,en}/
1.1       takayama   14: #
                     15: # NOTE: install-help should be executed after installing asir2000.
                     16: ########################################################################
                     17: #  How to add new documents in the category xxx
                     18: # "xxx*.texi <--- xxx.oxweave (manually written) + xxx*-auto.{en,ja} (automatic)"
                     19: #   (1) "xxx.oxweave" --> xxx.en and xxx.ja
                     20: #       xxx-auto.en and xxx-auto.ja should be included from
                     21: #       xxx.en and xxx.ja  (JASRCS, ENSRCS)
                     22: #     NOTE: xxx.oxweave might be embedded in xxx.rr or xxx,
                     23: #           but this style is obsolete.
                     24: #   (2) "xxx.rr" or "xxx" --> xxx-auto.en and xxx-auto.ja
                     25: #       (JAAUTO, ENAUTO)
                     26: #       xxx-auto*.texi's are extracted from xxx or xxx.rr
                     27: #   (3) xxx.en and xxx.ja should be included from cman.texi
                     28: #     and cman-en.texi
                     29: #  cf.  glib*  base*
                     30: ########################################################################
1.6     ! ohara      31: LANGUAGES = en ja
        !            32:
        !            33: INSTALL=@INSTALL@
        !            34: INSTALL_DATA=@INSTALL_DATA@
        !            35:
        !            36: bindir=@prefix@/bin
        !            37: LIBDIR=@prefix@/lib/asir
        !            38: DOCDIR=@prefix@/doc/asir-contrib
        !            39: OXWEAVE=${bindir}/oxweave
        !            40: OXGENTEXI=${bindir}/oxgentexi
        !            41: OXREPLACE=${bindir}/oxreplace
        !            42: OpenXM_ROOT=@OpenXM_ROOT@
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
1.6     ! ohara      46: EXTRACT_FUNC=${ASIRDOC}/extract_func
        !            47: PTEX=@PTEX@ -kanji=euc
        !            48: DVIPDF=@DVIPDF@
        !            49: MAKEINFO=@MAKEINFO@
        !            50: #
1.1       takayama   51: OPTGENTEXI= --include
                     52: #OPTGENTEXI= --include --example
                     53: ## PS documents are installed under ${OpenXM_doc}/asir-contrib
                     54: DVIPS=dvips -f
1.2       takayama   55: TEXI2HTML=texi2html -menu
1.6     ! ohara      56: RM=rm -f
1.1       takayama   57: NKF=nkf
                     58:
1.6     ! ohara      59: # source files
        !            60: SRC_TEXI = ${MYNAME}-en.texi ${MYNAME}-ja.texi
        !            61: SRC_LANG = ${MYNAME}.en ${MYNAME}.ja
        !            62:
        !            63: .SUFFIXES: .en .ja .oxw .texi .dvi .pdf .ps
1.1       takayama   64:
                     65: .oxw.en:
                     66:        ${OXWEAVE} C en < $< > ${<:.oxw=.en}
                     67:
                     68: .oxw.ja:
1.6     ! ohara      69:        ${OXWEAVE} C ja < $< | ${NKF} -e > ${<:.oxw=.ja}
1.1       takayama   70:
                     71: .dvi.pdf:
                     72:        ${DVIPDF} $<
                     73:
1.6     ! ohara      74: .dvi.ps:
        !            75:        ${DVIPS} $< > ${<:.dvi=.ps}
        !            76:
        !            77: .texi.dvi:
        !            78:        ${PTEX} $<
        !            79:        ${PTEX} $<
        !            80:
        !            81: all: gen-document
        !            82:
        !            83: ${MYNAME}-ja.dvi: ${MYNAME}.ja
        !            84: ${MYNAME}-en.dvi: ${MYNAME}.en
        !            85:
        !            86: gen-document: gen-html
        !            87:        -if [ ! -f ./.build_doc_done ]; then \
        !            88:                ${MAKE} ${SRC_TEXI:.texi=.pdf} ; \
        !            89:                touch ./.build_doc_done ; \
        !            90:        fi
        !            91:
        !            92: gen-texi: ${SRC_LANG} ${SRC_TEXI}
        !            93: gen-help: gen-texi ${EXTRACT_FUNC}
        !            94:        -if [ ! -f ./.build_help_done ]; then \
        !            95:                for j in ${LANGUAGES} ; do \
        !            96:                        mkdir -p help-$$j tmp-$$j ; \
        !            97:                        for f in ${MYNAME}-$$j.texi *.$$j ; do \
        !            98:                                if [ -f $$f ]; then cp $$f tmp-$$j/ ; fi ; \
        !            99:                        done ; \
        !           100:                        (cd tmp-$$j; ${MAKEINFO} --force ${MYNAME}-$$j.texi) ; \
        !           101:                        (cd help-$$j; for i in ../tmp-$$j/asir-contrib*; do ${EXTRACT_FUNC} $$i; done) ; \
        !           102:                done ; \
        !           103:                touch ./.build_help_done ; \
        !           104:        fi
        !           105:
        !           106: gen-html: gen-help
        !           107:        -if [ ! -f ./.build_html_done ]; then \
        !           108:                for j in ${LANGUAGES} ; do \
        !           109:                        mkdir -p html-$$j ; \
        !           110:                        for f in tmp-$$j/*.texi tmp-$$j/*.$$j ; do \
        !           111:                                if [ -f $$f ]; then cp $$f html-$$j/ ; fi ; \
        !           112:                        done ; \
        !           113:                        (cd html-$$j; ${TEXI2HTML} ${MYNAME}-$$j.texi ; \
        !           114:                        ${RM} *.$$j ${MYNAME}-$$j.texi) ; \
        !           115:                done ;\
        !           116:                touch ./.build_html_done ; \
        !           117:        fi
        !           118:
        !           119: install-help: gen-help
        !           120:        -if [ ! -f ./.install_help_done ]; then \
        !           121:                for j in ${LANGUAGES} ; do \
        !           122:                        mkdir -p ${LIBDIR}/help-$$j/xm.help ; \
        !           123:                        ${INSTALL_DATA} help-$$j/* ${LIBDIR}/help-$$j/xm.help/ ; \
        !           124:                done ;\
        !           125:                touch ./.install_help_done ; \
        !           126:        fi
        !           127:
        !           128: install-document: gen-document
        !           129:        -if [ ! -f ./.install_doc_done ]; then \
        !           130:                for j in ${LANGUAGES} ; do \
        !           131:                        mkdir -p "${DOCDIR}/$$j/${MYNAME}-html" ; \
        !           132:                        (cd html-$$j; tar cf - .) | (cd "${DOCDIR}/$$j/${MYNAME}-html" ; tar xf -) ; \
        !           133:                        ${INSTALL_DATA} ${MYNAME}-$$j.dvi ${MYNAME}-$$j.ps ${MYNAME}-$$j.pdf ${DOCDIR}/$$j/ ; \
        !           134:                done ; \
        !           135:                touch ./.install_doc_done ; \
        !           136:        fi
1.1       takayama  137:
                    138: clean: clean_private
1.6     ! ohara     139:        ${RM} gentexi-in.tmp gentexi-out.tmp
        !           140:        ${RM} *.aux *.cp *.dvi *.fn *.ky *.log *.pg *.toc *.tp *.vr *~
        !           141:        ${RM} *.en *.ja
        !           142:        ${RM} .build_* .install_*
        !           143:        -for j in ${LANGUAGES} ; do \
        !           144:                ${RM} -r help-$$j tmp-$$j html-$$j ; \
        !           145:                ${RM} ${MYNAME}-$$j.ps ${MYNAME}-$$j.pdf ${MYNAME}-$$j.dvi ; \
        !           146:        done

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