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

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

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