Annotation of OpenXM/src/asir-contrib/packages/doc/Makefile.common, Revision 1.2
1.2 ! takayama 1: # $OpenXM: OpenXM/src/asir-contrib/packages/doc/Makefile.common,v 1.1 2005/04/11 11:13:32 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:
87: gen-html-en: gen-help-en
88: -${RM} -rf html-en
89: -mkdir html-en
90: -cp tmp-en/*.texi tmp-en/*.en html-en
91: -(cd html-en; ${TEXI2HTML} ${MYNAME}-en.texi)
92: -(cd html-en; rm -f *.en ${MYNAME}-en.texi)
93:
94: gen-html-ja: gen-help-ja
95: -mkdir html-ja
96: -cp tmp-ja/*.texi tmp-ja/*.ja html-ja
97: -cp tmp-ja/${MYNAME}-ja.texi html-ja/${MYNAME}-ja.texi
98: -(cd html-ja; ${TEXI2HTML} ${MYNAME}-ja.texi)
99: -(cd html-ja; rm -f *.ja ${MYNAME}-ja.texi)
100:
101: gen-dvi-ja: ${MYNAME}-ja.dvi
102: gen-dvi-en: ${MYNAME}-en.dvi
103: gen-pdf-ja: ${MYNAME}-ja.pdf
104: gen-pdf-en: ${MYNAME}-en.pdf
105: gen-ps-ja: ${MYNAME}-ja.ps
106: gen-ps-en: ${MYNAME}-en.ps
107: ${MYNAME}-ja.dvi: ${JASRCS} ${JAAUTO} ${MYNAME}-ja.texi
108: -ptex ${MYNAME}-ja.texi
109: -ptex ${MYNAME}-ja.texi
110: ${MYNAME}-en.dvi: ${ENSRCS} ${ENAUTO} ${MYNAME}-en.texi
111: -tex ${MYNAME}-en.texi
112: -tex ${MYNAME}-en.texi
113: ${MYNAME}-ja.pdf: ${MYNAME}-ja.dvi
114: -${DVIPDF} ${MYNAME}-ja
115: ${MYNAME}-en.pdf: ${MYNAME}-en.dvi
116: -${DVIPDF} ${MYNAME}-en
117: ${MYNAME}-ja.ps: ${MYNAME}-ja.dvi
118: -${DVIPS} ${MYNAME}-ja >${MYNAME}-ja.ps
119: ${MYNAME}-en.ps: ${MYNAME}-en.ps
120: -${DVIPS} ${MYNAME}-en >${MYNAME}-en.ps
121:
122: install-help-ja: gen-help-ja
1.2 ! takayama 123: -mkdir ${INSTALL_lib}/asir/help-jp/xm.help
1.1 takayama 124: -cp -r -f help-ja/* ${INSTALL_lib}/asir/help-jp/xm.help
125: install-help-en: gen-help-en
1.2 ! takayama 126: -mkdir ${INSTALL_lib}/asir/help-eg/xm.help
1.1 takayama 127: -cp -r -f help-en/* ${INSTALL_lib}/asir/help-eg/xm.help
128: install-html-ja: gen-html-ja
129: -mkdir -p ${INSTALL_doc}/asir-contrib/ja
130: -( tar cf - html-ja | (cd ${INSTALL_doc}/asir-contrib/ja ; tar xf - ; mv html-ja ${MYNAME}-html))
131: install-html-en: gen-html-en
132: -mkdir -p ${INSTALL_doc}/asir-contrib/en
133: -( tar cf - html-en | (cd ${INSTALL_doc}/asir-contrib/en ; tar xf - ; mv html-en ${MYNAME}-html))
1.2 ! takayama 134:
! 135: install-dvi-ps-pdf-ja: install-dvi-ja install-ps-ja install-pdf-ja
! 136: install-dvi-ps-pdf-en: install-dvi-en install-ps-en install-pdf-en
1.1 takayama 137: install-dvi-ja: gen-dvi-ja
138: -mkdir -p ${INSTALL_lib}/asir-contrib/ja
139: -cp ${MYNAME}-ja.dvi ${INSTALL_doc}/asir-contrib/ja/${MYNAME}-ja.dvi
140: install-dvi-en: gen-dvi-en
141: -mkdir -p ${INSTALL_lib}/asir-contrib/en
142: -cp ${MYNAME}-en.dvi ${INSTALL_doc}/asir-contrib/en/${MYNAME}-en.dvi
143: install-ps-ja: gen-ps-ja
144: -mkdir -p ${INSTALL_lib}/asir-contrib/ja
145: -cp ${MYNAME}-ja.ps ${INSTALL_doc}/asir-contrib/ja/${MYNAME}-ja.ps
146: install-ps-en: gen-ps-en
147: -mkdir -p ${INSTALL_lib}/asir-contrib/en
148: -cp ${MYNAME}-en.ps ${INSTALL_doc}/asir-contrib/en/${MYNAME}-en.ps
149: install-pdf-ja: gen-pdf-ja
150: -mkdir -p ${INSTALL_lib}/asir-contrib/ja
151: -cp ${MYNAME}-ja.pdf ${INSTALL_doc}/asir-contrib/ja/${MYNAME}-ja.pdf
152: install-pdf-en: gen-pdf-en
153: -mkdir -p ${INSTALL_lib}/asir-contrib/en
154: -cp ${MYNAME}-en.pdf ${INSTALL_doc}/asir-contrib/en/${MYNAME}-en.pdf
155:
156: clean: clean_private
157: ${RM} -f ${JAAUTO} ${ENAUTO} gentexi-in.tmp gentexi-out.tmp
158: ${RM} -f *.aux *.cp *.dvi *.fn *.ky *.log *.pg *.toc *.tp *.vr *~
159: ${RM} -f *.en *.ja
160: ${RM} -f ${MYNAME}-en.ps ${MYNAME}-ja.ps ${MYNAME}-en.pdf ${MYNAME}-ja.pdf
161: ${RM} -rf help-ja help-en tmp-en tmp-ja html-en html-ja
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>