Annotation of OpenXM/src/asir-contrib/packages/doc/M/Makefile.in, Revision 1.11
1.11 ! takayama 1: # $OpenXM: OpenXM/src/asir-contrib/packages/doc/M/Makefile.in,v 1.10 2017/08/31 06:31:44 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:
1.11 ! takayama 72: .texi.pdf:
1.6 ohara 73: ${PTEX} $<
74: ${PTEX} $<
75:
76: all: gen-document
77:
78: ${MYNAME}-ja.dvi: ${MYNAME}.ja
79: ${MYNAME}-en.dvi: ${MYNAME}.en
80:
1.7 ohara 81: gen-pdf: ${SRC_TEXI:.texi=.pdf}
82:
1.6 ohara 83: gen-document: gen-html
84: -if [ ! -f ./.build_doc_done ]; then \
85: ${MAKE} ${SRC_TEXI:.texi=.pdf} ; \
86: touch ./.build_doc_done ; \
87: fi
88:
89: gen-texi: ${SRC_LANG} ${SRC_TEXI}
90: gen-help: gen-texi ${EXTRACT_FUNC}
91: -if [ ! -f ./.build_help_done ]; then \
92: for j in ${LANGUAGES} ; do \
93: mkdir -p help-$$j tmp-$$j ; \
94: for f in ${MYNAME}-$$j.texi *.$$j ; do \
95: if [ -f $$f ]; then cp $$f tmp-$$j/ ; fi ; \
96: done ; \
97: (cd tmp-$$j; ${MAKEINFO} --force ${MYNAME}-$$j.texi) ; \
98: (cd help-$$j; for i in ../tmp-$$j/asir-contrib*; do ${EXTRACT_FUNC} $$i; done) ; \
99: done ; \
100: touch ./.build_help_done ; \
101: fi
102:
103: gen-html: gen-help
104: -if [ ! -f ./.build_html_done ]; then \
105: for j in ${LANGUAGES} ; do \
106: mkdir -p html-$$j ; \
107: for f in tmp-$$j/*.texi tmp-$$j/*.$$j ; do \
108: if [ -f $$f ]; then cp $$f html-$$j/ ; fi ; \
109: done ; \
110: (cd html-$$j; ${TEXI2HTML} ${MYNAME}-$$j.texi ; \
111: ${RM} *.$$j ${MYNAME}-$$j.texi) ; \
112: done ;\
113: touch ./.build_html_done ; \
114: fi
115:
116: install-help: gen-help
117: -if [ ! -f ./.install_help_done ]; then \
118: for j in ${LANGUAGES} ; do \
119: mkdir -p ${LIBDIR}/help-$$j/xm.help ; \
120: ${INSTALL_DATA} help-$$j/* ${LIBDIR}/help-$$j/xm.help/ ; \
121: done ;\
122: touch ./.install_help_done ; \
123: fi
124:
125: install-document: gen-document
126: -if [ ! -f ./.install_doc_done ]; then \
127: for j in ${LANGUAGES} ; do \
128: mkdir -p "${DOCDIR}/$$j/${MYNAME}-html" ; \
129: (cd html-$$j; tar cf - .) | (cd "${DOCDIR}/$$j/${MYNAME}-html" ; tar xf -) ; \
1.11 ! takayama 130: ${INSTALL_DATA} ${MYNAME}-$$j.pdf ${DOCDIR}/$$j/ ; \
1.6 ohara 131: done ; \
132: touch ./.install_doc_done ; \
133: fi
1.1 takayama 134:
135: clean: clean_private
1.6 ohara 136: ${RM} gentexi-in.tmp gentexi-out.tmp
137: ${RM} *.aux *.cp *.dvi *.fn *.ky *.log *.pg *.toc *.tp *.vr *~
138: ${RM} *.en *.ja
139: ${RM} .build_* .install_*
140: -for j in ${LANGUAGES} ; do \
141: ${RM} -r help-$$j tmp-$$j html-$$j ; \
142: ${RM} ${MYNAME}-$$j.ps ${MYNAME}-$$j.pdf ${MYNAME}-$$j.dvi ; \
143: done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>