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

1.12    ! takayama    1: # $OpenXM: OpenXM/src/asir-contrib/packages/doc/M/Makefile.in,v 1.11 2021/01/21 23:30:31 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}
1.7       ohara       7: # gen-pdf  : generating dvi and 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
1.8       ohara      47: PTEX=@PTEX@
1.10      takayama   48: TEX=@TEX@
1.6       ohara      49: DVIPDF=@DVIPDF@
                     50: MAKEINFO=@MAKEINFO@
                     51: #
1.1       takayama   52: OPTGENTEXI= --include
                     53: #OPTGENTEXI= --include --example
                     54: ## PS documents are installed under ${OpenXM_doc}/asir-contrib
                     55: DVIPS=dvips -f
1.12    ! takayama   56: #TEXI2HTML=${ASIRDOC}/texi2html -menu
        !            57: TEXI2HTML=texi2html -menu
1.6       ohara      58: RM=rm -f
1.10      takayama   59: NKF=nkf -w
1.1       takayama   60:
1.6       ohara      61: # source files
                     62: SRC_TEXI = ${MYNAME}-en.texi ${MYNAME}-ja.texi
                     63: SRC_LANG = ${MYNAME}.en ${MYNAME}.ja
                     64:
                     65: .SUFFIXES: .en .ja .oxw .texi .dvi .pdf .ps
1.1       takayama   66:
                     67: .oxw.en:
                     68:        ${OXWEAVE} C en < $< > ${<:.oxw=.en}
                     69:
                     70: .oxw.ja:
1.9       takayama   71:        ${OXWEAVE} C ja < $< | ${NKF} -w > ${<:.oxw=.ja}
1.1       takayama   72:
1.11      takayama   73: .texi.pdf:
1.6       ohara      74:        ${PTEX} $<
                     75:        ${PTEX} $<
                     76:
                     77: all: gen-document
                     78:
                     79: ${MYNAME}-ja.dvi: ${MYNAME}.ja
                     80: ${MYNAME}-en.dvi: ${MYNAME}.en
                     81:
1.7       ohara      82: gen-pdf: ${SRC_TEXI:.texi=.pdf}
                     83:
1.6       ohara      84: gen-document: gen-html
                     85:        -if [ ! -f ./.build_doc_done ]; then \
                     86:                ${MAKE} ${SRC_TEXI:.texi=.pdf} ; \
                     87:                touch ./.build_doc_done ; \
                     88:        fi
                     89:
                     90: gen-texi: ${SRC_LANG} ${SRC_TEXI}
                     91: gen-help: gen-texi ${EXTRACT_FUNC}
                     92:        -if [ ! -f ./.build_help_done ]; then \
                     93:                for j in ${LANGUAGES} ; do \
                     94:                        mkdir -p help-$$j tmp-$$j ; \
                     95:                        for f in ${MYNAME}-$$j.texi *.$$j ; do \
                     96:                                if [ -f $$f ]; then cp $$f tmp-$$j/ ; fi ; \
                     97:                        done ; \
                     98:                        (cd tmp-$$j; ${MAKEINFO} --force ${MYNAME}-$$j.texi) ; \
                     99:                        (cd help-$$j; for i in ../tmp-$$j/asir-contrib*; do ${EXTRACT_FUNC} $$i; done) ; \
                    100:                done ; \
                    101:                touch ./.build_help_done ; \
                    102:        fi
                    103:
                    104: gen-html: gen-help
                    105:        -if [ ! -f ./.build_html_done ]; then \
                    106:                for j in ${LANGUAGES} ; do \
                    107:                        mkdir -p html-$$j ; \
                    108:                        for f in tmp-$$j/*.texi tmp-$$j/*.$$j ; do \
                    109:                                if [ -f $$f ]; then cp $$f html-$$j/ ; fi ; \
                    110:                        done ; \
                    111:                        (cd html-$$j; ${TEXI2HTML} ${MYNAME}-$$j.texi ; \
                    112:                        ${RM} *.$$j ${MYNAME}-$$j.texi) ; \
                    113:                done ;\
                    114:                touch ./.build_html_done ; \
                    115:        fi
                    116:
                    117: install-help: gen-help
                    118:        -if [ ! -f ./.install_help_done ]; then \
                    119:                for j in ${LANGUAGES} ; do \
                    120:                        mkdir -p ${LIBDIR}/help-$$j/xm.help ; \
                    121:                        ${INSTALL_DATA} help-$$j/* ${LIBDIR}/help-$$j/xm.help/ ; \
                    122:                done ;\
                    123:                touch ./.install_help_done ; \
                    124:        fi
                    125:
                    126: install-document: gen-document
                    127:        -if [ ! -f ./.install_doc_done ]; then \
                    128:                for j in ${LANGUAGES} ; do \
                    129:                        mkdir -p "${DOCDIR}/$$j/${MYNAME}-html" ; \
                    130:                        (cd html-$$j; tar cf - .) | (cd "${DOCDIR}/$$j/${MYNAME}-html" ; tar xf -) ; \
1.11      takayama  131:                        ${INSTALL_DATA} ${MYNAME}-$$j.pdf ${DOCDIR}/$$j/ ; \
1.6       ohara     132:                done ; \
                    133:                touch ./.install_doc_done ; \
                    134:        fi
1.1       takayama  135:
                    136: clean: clean_private
1.6       ohara     137:        ${RM} gentexi-in.tmp gentexi-out.tmp
                    138:        ${RM} *.aux *.cp *.dvi *.fn *.ky *.log *.pg *.toc *.tp *.vr *~
                    139:        ${RM} *.en *.ja
                    140:        ${RM} .build_* .install_*
                    141:        -for j in ${LANGUAGES} ; do \
                    142:                ${RM} -r help-$$j tmp-$$j html-$$j ; \
                    143:                ${RM} ${MYNAME}-$$j.ps ${MYNAME}-$$j.pdf ${MYNAME}-$$j.dvi ; \
                    144:        done

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