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