Annotation of OpenXM/src/asir-contrib/packages/doc/M/Makefile.in, Revision 1.3
1.3 ! takayama 1: # $OpenXM: OpenXM/src/asir-contrib/packages/doc/M/Makefile.in,v 1.2 2009/02/15 01:51:12 takayama Exp $
1.1 takayama 2: PTEX=@PTEX@
3: DVIPDF=@DVIPDF@
4: # Original file was ../Makefile.common
5: # Targets
6: # gen-texi-en, gen-texi-ja : generating texi files.
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 online help files under help-en, help-ja
11: # gen-dvi-en, gen-dvi-ja : generating dvi, ps, pdf files here.
12: # gen-ps-en, gen-ps-ja :
13: # gen-pdf-en, gen-pdf-ja :
14: #
15: # install-help-en, -ja
16: # Installing online help to OpenXM/lib/asir/help-eg/xm.help
17: # Installing online help to OpenXM/lib/asir/help-jp/xm.help
18: # install-html-en, -ja
19: # Copy html help to OpenXM/doc/asir-contrib/ja, en
20: # install-dvi-en, -ja; install-ps-en, -ja; install-pdf-en, -ja;
21: # Copy the documents in dvi and ps to OpenXM/doc/asir-contrib/ja, en
22: #
23: # NOTE: install-help should be executed after installing asir2000.
24: ########################################################################
25: # How to add new documents in the category xxx
26: # "xxx*.texi <--- xxx.oxweave (manually written) + xxx*-auto.{en,ja} (automatic)"
27: # (1) "xxx.oxweave" --> xxx.en and xxx.ja
28: # xxx-auto.en and xxx-auto.ja should be included from
29: # xxx.en and xxx.ja (JASRCS, ENSRCS)
30: # NOTE: xxx.oxweave might be embedded in xxx.rr or xxx,
31: # but this style is obsolete.
32: # (2) "xxx.rr" or "xxx" --> xxx-auto.en and xxx-auto.ja
33: # (JAAUTO, ENAUTO)
34: # xxx-auto*.texi's are extracted from xxx or xxx.rr
35: # (3) xxx.en and xxx.ja should be included from cman.texi
36: # and cman-en.texi
37: # cf. glib* base*
38: ########################################################################
39: # They are configured and set by the upper level Makefile
40: INSTALL_doc=${OpenXM_HOME}/doc
41: INSTALL_lib=${OpenXM_HOME}/lib
42: OXWEAVE=${OpenXM_HOME}/bin/oxweave
43: OXGENTEXI=${OpenXM_HOME}/bin/oxgentexi
1.3 ! takayama 44: OXREPLACE=${OpenXM_HOME}/bin/oxreplace
1.1 takayama 45: #
46: OpenXM_ROOT=../../../../../../OpenXM
47: ASIRDOC=${OpenXM_ROOT}/src/asir-doc
48: ASIRLIB=${OpenXM_ROOT}/../OpenXM_contrib2/asir2000/lib
49: CONTRIB=${OpenXM_ROOT}/src/asir-contrib/packages/src
50: OPTGENTEXI= --include
51: #OPTGENTEXI= --include --example
52: ## PS documents are installed under ${OpenXM_doc}/asir-contrib
53: DVIPS=dvips -f
1.2 takayama 54: TEXI2HTML=texi2html -menu
1.1 takayama 55: RM=rm
56: NKF=nkf
57:
58: .SUFFIXES: .en .ja .oxw .dvi .pdf
59:
60: .oxw.en:
61: ${RM} -f ${<:.oxw=.en}
62: ${OXWEAVE} C en < $< > ${<:.oxw=.en}
63:
64: .oxw.ja:
65: ${RM} -f ${<:.oxw=.ja}
66: ${OXWEAVE} C ja < $< > ${<:.oxw=.ja}
67:
68: .dvi.pdf:
69: ${DVIPDF} $<
70:
71: gen-texi: gen-texi-ja gen-texi-en
72: gen-texi-ja: ${JASRCS} ${JAAUTO} ${MYNAME}-ja.texi
73: gen-texi-en: ${ENSRCS} ${ENAUTO} ${MYNAME}-en.texi
74:
75: ### Generating online manual. gen-help
76: gen-help-en: ${ENSRCS} ${ASIRDOC}/extract_func ${ENAUTO} ${MYNAME}-en.texi
77: -${RM} -rf tmp-en help-en
78: mkdir help-en tmp-en
79: cp ${MYNAME}-en.texi ${ENSRCS} ${ENAUTO} tmp-en
80: -(cd tmp-en; makeinfo --force ${MYNAME}-en.texi)
81: (cd help-en; for i in ../tmp-en/asir-contrib*; do ../${ASIRDOC}/extract_func $$i; done)
82:
83: gen-help-ja: ${JASRCS} ${ASIRDOC}/extract_func ${JAAUTO} ${MYNAME}-ja.texi
84: -${RM} -rf tmp-ja help-ja
85: mkdir help-ja tmp-ja
86: for i in ${MYNAME}-ja.texi ${JASRCS} ${JAAUTO}; do nkf -e $$i > tmp-ja/$$i; done
87: -(cd tmp-ja; makeinfo --force ${MYNAME}-ja.texi)
88: (cd help-ja; for i in ../tmp-ja/asir-contrib*; do ../${ASIRDOC}/extract_func -j $$i; done)
89:
1.2 takayama 90: gen-html-en: html-en/${MYNAME}-en.html gen-help-en
91: html-en/${MYNAME}-en.html: ${ENSRCS} ${ENAUTO} ${MYNAME}-en.texi
1.1 takayama 92: -${RM} -rf html-en
93: -mkdir html-en
94: -cp tmp-en/*.texi tmp-en/*.en html-en
95: -(cd html-en; ${TEXI2HTML} ${MYNAME}-en.texi)
96: -(cd html-en; rm -f *.en ${MYNAME}-en.texi)
97:
1.2 takayama 98: gen-html-ja: html-ja/${MYNAME}-ja.html gen-help-ja
99: html-ja/${MYNAME}-ja.html: ${JASRCS} ${JAAUTO} ${MYNAME}-ja.texi
1.1 takayama 100: -mkdir html-ja
101: -cp tmp-ja/*.texi tmp-ja/*.ja html-ja
102: -cp tmp-ja/${MYNAME}-ja.texi html-ja/${MYNAME}-ja.texi
103: -(cd html-ja; ${TEXI2HTML} ${MYNAME}-ja.texi)
1.3 ! takayama 104: -(cd html-ja; ${OXREPLACE} --old '<html>' --new '<html> <meta http-equiv="Content-Type" content="text/html; charset=euc-jp">' ${MYNAME}-ja.html)
! 105: -(cd html-ja; rm -f *.ja ${MYNAME}-ja.texi ${MYNAME}*.old)
1.1 takayama 106:
107: gen-dvi-ja: ${MYNAME}-ja.dvi
108: gen-dvi-en: ${MYNAME}-en.dvi
109: gen-pdf-ja: ${MYNAME}-ja.pdf
110: gen-pdf-en: ${MYNAME}-en.pdf
111: gen-ps-ja: ${MYNAME}-ja.ps
112: gen-ps-en: ${MYNAME}-en.ps
113: ${MYNAME}-ja.dvi: ${JASRCS} ${JAAUTO} ${MYNAME}-ja.texi
114: -${PTEX} ${MYNAME}-ja.texi
115: -${PTEX} ${MYNAME}-ja.texi
116: ${MYNAME}-en.dvi: ${ENSRCS} ${ENAUTO} ${MYNAME}-en.texi
117: -tex ${MYNAME}-en.texi
118: -tex ${MYNAME}-en.texi
119: ${MYNAME}-ja.pdf: ${MYNAME}-ja.dvi
120: -${DVIPDF} ${MYNAME}-ja
121: ${MYNAME}-en.pdf: ${MYNAME}-en.dvi
122: -${DVIPDF} ${MYNAME}-en
123: ${MYNAME}-ja.ps: ${MYNAME}-ja.dvi
124: -${DVIPS} ${MYNAME}-ja >${MYNAME}-ja.ps
125: ${MYNAME}-en.ps: ${MYNAME}-en.ps
126: -${DVIPS} ${MYNAME}-en >${MYNAME}-en.ps
127:
128: install-help-ja: gen-help-ja
129: -mkdir ${INSTALL_lib}/asir/help-jp/xm.help
130: -cp -r -f help-ja/* ${INSTALL_lib}/asir/help-jp/xm.help
131: install-help-en: gen-help-en
132: -mkdir ${INSTALL_lib}/asir/help-eg/xm.help
133: -cp -r -f help-en/* ${INSTALL_lib}/asir/help-eg/xm.help
134:
1.2 takayama 135: install-html-ja: gen-html-ja ${INSTALL_doc}/asir-contrib/ja/${MYNAME}-html/${MYNAME}-ja.html
136: ${INSTALL_doc}/asir-contrib/ja/${MYNAME}-html/${MYNAME}-ja.html: html-ja/${MYNAME}-ja.html
1.1 takayama 137: -${RM} -rf ${INSTALL_doc}/asir-contrib/ja/${MYNAME}-html
138: -mkdir -p ${INSTALL_doc}/asir-contrib/ja
139: -( tar cf - html-ja | (cd ${INSTALL_doc}/asir-contrib/ja ; tar xf - ; mv html-ja ${MYNAME}-html))
140:
1.2 takayama 141: install-html-en: gen-html-en ${INSTALL_doc}/asir-contrib/en/${MYNAME}-html/${MYNAME}-en.html
142: ${INSTALL_doc}/asir-contrib/en/${MYNAME}-html/${MYNAME}-en.html: html-en/${MYNAME}-en.html
1.1 takayama 143: -${RM} -rf ${INSTALL_doc}/asir-contrib/en/${MYNAME}-html
144: -mkdir -p ${INSTALL_doc}/asir-contrib/en
145: -( tar cf - html-en | (cd ${INSTALL_doc}/asir-contrib/en ; tar xf - ; mv html-en ${MYNAME}-html))
146:
147: install-dvi-ps-pdf-ja: install-dvi-ja install-ps-ja install-pdf-ja
148: install-dvi-ps-pdf-en: install-dvi-en install-ps-en install-pdf-en
149: install-dvi-ja: gen-dvi-ja
150: -mkdir -p ${INSTALL_lib}/asir-contrib/ja
151: -cp ${MYNAME}-ja.dvi ${INSTALL_doc}/asir-contrib/ja/${MYNAME}-ja.dvi
152: install-dvi-en: gen-dvi-en
153: -mkdir -p ${INSTALL_lib}/asir-contrib/en
154: -cp ${MYNAME}-en.dvi ${INSTALL_doc}/asir-contrib/en/${MYNAME}-en.dvi
155: install-ps-ja: gen-ps-ja
156: -mkdir -p ${INSTALL_lib}/asir-contrib/ja
157: -cp ${MYNAME}-ja.ps ${INSTALL_doc}/asir-contrib/ja/${MYNAME}-ja.ps
158: install-ps-en: gen-ps-en
159: -mkdir -p ${INSTALL_lib}/asir-contrib/en
160: -cp ${MYNAME}-en.ps ${INSTALL_doc}/asir-contrib/en/${MYNAME}-en.ps
161: install-pdf-ja: gen-pdf-ja
162: -mkdir -p ${INSTALL_lib}/asir-contrib/ja
163: -cp ${MYNAME}-ja.pdf ${INSTALL_doc}/asir-contrib/ja/${MYNAME}-ja.pdf
164: install-pdf-en: gen-pdf-en
165: -mkdir -p ${INSTALL_lib}/asir-contrib/en
166: -cp ${MYNAME}-en.pdf ${INSTALL_doc}/asir-contrib/en/${MYNAME}-en.pdf
167:
168: clean: clean_private
169: ${RM} -f ${JAAUTO} ${ENAUTO} gentexi-in.tmp gentexi-out.tmp
170: ${RM} -f *.aux *.cp *.dvi *.fn *.ky *.log *.pg *.toc *.tp *.vr *~
171: ${RM} -f *.en *.ja
172: ${RM} -f ${MYNAME}-en.ps ${MYNAME}-ja.ps ${MYNAME}-en.pdf ${MYNAME}-ja.pdf
173: ${RM} -rf help-ja help-en tmp-en tmp-ja html-en html-ja
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>