Annotation of OpenXM/src/asir-contrib/packages/doc/Makefile.in, Revision 1.6
1.6 ! takayama 1: #$OpenXM: OpenXM/src/asir-contrib/packages/doc/Makefile.in,v 1.5 2005/03/24 08:50:02 takayama Exp $
1.1 takayama 2: # targets
3: # all :
4: # Extracts all tex-info files from ../src/* and generate *.texi files.
5: # install : install-help
6: # install-help : all
7: # Installing online help to OpenXM/lib/asir/help-*
8: # install-document : all gen-dvi-ps
9: # Copy the documents in dvi and ps to OpenXM/doc/asir-contrib
10: # install-html-help
11: # Copy html help to OpenXM/doc/asir-contrib
12: # gen-html-en gen-html-ja
13: # Generate HTML documents under html-en and html-ja
14: # gen-help-en gen-help-ja
15: # Generate help files.
16: # gen-dvi-ps
17: # Generate dvi and ps files.
18: #
19: # NOTE: install-help should be executed after installing asir2000.
20: ########################################################################
21: # How to add new documents in the category xxx
22: # "xxx*.texi <--- xxx.oxweave (manually written) + xxx*-auto.{en,ja} (automatic)"
23: # (1) "xxx.oxweave" --> xxx.en and xxx.ja
24: # xxx-auto.en and xxx-auto.ja should be included from
25: # xxx.en and xxx.ja (JASRCS, ENSRCS)
26: # NOTE: xxx.oxweave might be embedded in xxx.rr or xxx,
27: # but this style is obsolete.
28: # (2) "xxx.rr" or "xxx" --> xxx-auto.en and xxx-auto.ja
29: # (JAAUTO, ENAUTO)
30: # xxx-auto*.texi's are extracted from xxx or xxx.rr
31: # (3) xxx.en and xxx.ja should be included from cman.texi
32: # and cman-en.texi
33: # cf. glib* base*
34: ########################################################################
35: OpenXM_ROOT=../../../../../OpenXM
36: ASIRDOC=../../../asir-doc
37: ASIRLIB=${OpenXM_ROOT}/../OpenXM_contrib2/asir2000/lib
38: CONTRIB=../src
39: OPTGENTEXI= --include
40: #OPTGENTEXI= --include --example
41: ## PS documents are installed under ${OpenXM_doc}/asir-contrib
42: INSTALL_doc=@prefix@/doc
43: INSTALL_lib=@prefix@/lib
44: OXWEAVE=@prefix@/bin/oxweave
45: DVIPS=dvips -f
46: TEXI2HTML=texi2html -menu -split_node
47: RM=rm
48: DVIPDF=dvipdfmx
49:
50: SRC = base.oxweave calculus.oxweave complex.oxweave dsolv.oxweave \
51: glib.oxweave gnuplot.oxweave graphic.oxweave hypergeometric.oxweave \
52: intro.oxweave m.oxweave matrix.oxweave misc.oxweave names.oxweave \
53: number.oxweave oxrfc100.oxweave pfp.oxweave phc.oxweave \
54: plucker.oxweave poly.oxweave print.oxweave series.oxweave sm1.oxweave \
1.2 takayama 55: tigers.oxweave util.oxweave windows.oxweave oxshell.oxweave
1.1 takayama 56:
57: ENSRCS = ${SRC:.oxweave=.en} opening.texi oxom.en
58: JASRCS = ${SRC:.oxweave=.ja} opening.texi oxom.ja Diff-ja.texi Dmodule-ja.texi
59: ENAUTO= base-auto.en glib-auto.en matrix-auto.en number-auto.en pfp-auto.en \
1.2 takayama 60: plucker-auto.en poly-auto.en print-auto.en sm1-auto.en util-auto.en \
61: oxshell-auto.en
1.1 takayama 62: JAAUTO=${ENAUTO:.en=.ja}
1.4 takayama 63:
1.5 takayama 64: SUBDIRS=todo_parametrize
1.1 takayama 65:
66: .SUFFIXES: .en .ja .oxweave .dvi .pdf
67:
68: .oxweave.en:
69: ${RM} -f ${<:.oxweave=.en}
70: ${OXWEAVE} C en < $< > ${<:.oxweave=.en}
71:
72: .oxweave.ja:
73: ${RM} -f ${<:.oxweave=.ja}
74: ${OXWEAVE} C ja < $< > ${<:.oxweave=.ja}
75:
76: .dvi.pdf:
77: ${DVIPDF} $<
78:
79: all : gentexi ${JASRCS} ${ENSRCS} ${JAAUTO} ${ENAUTO}
80: @echo "Type in tex cman-en.texi to generate the manual(en) in dvi format."
81: @echo "Type in ptex cman-ja.texi to generate the manual(ja) in dvi format."
82:
83: install :
84: @if [ ! -f ./.done_install ] ; then \
85: make install2 ; \
86: touch ./.done_install ; \
87: else \
88: echo "NOTE: Installation is already done. Remove .done_install for a new installation." ; \
89: fi
90:
91: install-document : install-html-help
92: @if [ ! -f ./.done_install_document ] ; then \
93: make install-document2 ; \
94: touch ./.done_install_document ; \
95: else \
96: echo "NOTE: Installation of document is already done. Remove .done_install_document for a new installation." ; \
97: fi
98:
99: install2 : install-help
100:
101: gentexi : gentexi.c
102: gcc -o gentexi gentexi.c
103:
1.6 ! takayama 104: oxom.ja : ${CONTRIB}/om.rr
1.1 takayama 105: ${RM} -f oxom.ja
1.6 ! takayama 106: ${OXWEAVE} C ja <${CONTRIB}/om.rr >oxom.ja
! 107: oxom.en : ${CONTRIB}/om.rr
1.1 takayama 108: ${RM} -f oxom.en
1.6 ! takayama 109: ${OXWEAVE} C en <${CONTRIB}/om.rr >oxom.en
1.1 takayama 110:
111: ### base
112: base-auto.en : ${CONTRIB}/names.rr gentexi
113: ${RM} -f base-auto.en
114: ${OXWEAVE} usage <${CONTRIB}/names.rr | ./gentexi --category base --en --upnode "Basic (Standard Functions)" ${OPTGENTEXI} >base-auto.en
115: base-auto.ja : ${CONTRIB}/names.rr gentexi
116: ${RM} -f base-auto.ja
117: ${OXWEAVE} usage <${CONTRIB}/names.rr | ./gentexi --category base --ja --upnode "Basic (Standard Functions)" ${OPTGENTEXI} >base-auto.ja
118:
119: ### plucker
120: plucker-auto.en : ${CONTRIB}/plucker.rr gentexi
121: ${RM} -f plucker-auto.en
122: ${OXWEAVE} usage <${CONTRIB}/plucker.rr | ./gentexi --category plucker --en --upnode "Plucker relations" ${OPTGENTEXI} >plucker-auto.en
123: plucker-auto.ja : ${CONTRIB}/plucker.rr gentexi
124: ${RM} -f plucker-auto.ja
125: ${OXWEAVE} usage <${CONTRIB}/plucker.rr | ./gentexi --category plucker --ja --upnode "Plucker relations" ${OPTGENTEXI} >plucker-auto.ja
126:
127: ### number
128: number-auto.en : ${CONTRIB}/names.rr gentexi
129: ${RM} -f number-auto.en
130: cat ${CONTRIB}/names.rr | ${OXWEAVE} usage | ./gentexi --category number --en --upnode "Numbers (Standard Mathematical Functions)" ${OPTGENTEXI} >number-auto.en
131: number-auto.ja : ${CONTRIB}/names.rr gentexi
132: ${RM} -f number-auto.ja
133: cat ${CONTRIB}/names.rr | ${OXWEAVE} usage | ./gentexi --category number --ja --upnode "Numbers (Standard Mathematical Functions)" ${OPTGENTEXI} >number-auto.ja
134:
135: ### matrix
136: matrix-auto.en : ${CONTRIB}/names.rr gentexi
137: ${RM} -f matrix-auto.en
138: ${OXWEAVE} usage <${CONTRIB}/names.rr | ./gentexi --category matrix --en --upnode "Matrix (Standard Mathematical Functions)" ${OPTGENTEXI} >matrix-auto.en
139: matrix-auto.ja : ${CONTRIB}/names.rr gentexi
140: ${RM} -f matrix-auto.ja
141: ${OXWEAVE} usage <${CONTRIB}/names.rr | ./gentexi --category matrix --ja --upnode "Matrix (Standard Mathematical Functions)" ${OPTGENTEXI} >matrix-auto.ja
142:
143: ### print
144: print-auto.en : ${CONTRIB}/names.rr gentexi
145: ${RM} -f print-auto.en
146: ${OXWEAVE} usage <${CONTRIB}/names.rr | ./gentexi --category print --en --upnode "Print (Standard Mathematical Functions)" ${OPTGENTEXI} >print-auto.en
147: print-auto.ja : ${CONTRIB}/names.rr gentexi
148: ${RM} -f print-auto.ja
149: ${OXWEAVE} usage <${CONTRIB}/names.rr | ./gentexi --category print --ja --upnode "Print (Standard Mathematical Functions)" ${OPTGENTEXI} >print-auto.ja
150:
151: ### poly
152: poly-auto.en : ${CONTRIB}/names.rr gentexi
153: ${RM} -f poly-auto.en
154: ${OXWEAVE} usage <${CONTRIB}/names.rr | ./gentexi --category poly --en --upnode "Polynomials (Standard Mathematical Functions)" ${OPTGENTEXI} >poly-auto.en
155: poly-auto.ja : ${CONTRIB}/names.rr gentexi
156: ${RM} -f poly-auto.ja
157: ${OXWEAVE} usage <${CONTRIB}/names.rr | ./gentexi --category poly --ja --upnode "Polynomials (Standard Mathematical Functions)" ${OPTGENTEXI} >poly-auto.ja
158: ### sm1
1.6 ! takayama 159: sm1-auto.en : ${CONTRIB}/sm1.rr gentexi
1.1 takayama 160: ${RM} -f sm1-auto.en
1.6 ! takayama 161: ${OXWEAVE} usage <${CONTRIB}/sm1.rr | ./gentexi --category sm1 --en --upnode "SM1 Functions" ${OPTGENTEXI} >sm1-auto.en
! 162: sm1-auto.ja : ${CONTRIB}/sm1.rr gentexi
1.1 takayama 163: ${RM} -f sm1-auto.ja
1.6 ! takayama 164: ${OXWEAVE} usage <${CONTRIB}/sm1.rr | ./gentexi --category sm1 --ja --upnode "SM1 Functions" ${OPTGENTEXI} >sm1-auto.ja
1.1 takayama 165:
166: ### glib
167: glib-auto.en : ${ASIRLIB}/glib gentexi
168: ${RM} -f glib-auto.en
169: cat ${ASIRLIB}/glib | ${OXWEAVE} usage | ./gentexi --category glib --en --upnode "Graphic Library (2 dimensional)" ${OPTGENTEXI} >glib-auto.en
170: glib-auto.ja : ${ASIRLIB}/glib gentexi
171: ${RM} -f glib-auto.ja
172: cat ${ASIRLIB}/glib | ${OXWEAVE} usage | ./gentexi --category glib --ja --upnode "Graphic Library (2 dimensional)" ${OPTGENTEXI} >glib-auto.ja
173:
174: ### pfp
175: pfp-auto.en : ${CONTRIB}/pfpcoh.rr ${CONTRIB}/pfphom.rr gentexi
176: ${RM} -f pfp-auto.en
177: cat ${CONTRIB}/pfpcoh.rr ${CONTRIB}/pfphom.rr | ${OXWEAVE} usage | ./gentexi --en --upnode Pfpcohom ${OPTGENTEXI} >pfp-auto.en
178: pfp-auto.ja : ${CONTRIB}/pfpcoh.rr ${CONTRIB}/pfphom.rr gentexi
179: ${RM} -f pfp-auto.ja
180: cat ${CONTRIB}/pfpcoh.rr ${CONTRIB}/pfphom.rr | ${OXWEAVE} usage | ./gentexi --ja --upnode Pfpcohom ${OPTGENTEXI} >pfp-auto.ja
181:
182: ### util
183: util-auto.en : ${CONTRIB}/names.rr gentexi
184: ${RM} -f util-auto.en
185: cat ${CONTRIB}/names.rr | ${OXWEAVE} usage | ./gentexi --category util --en --upnode "Utility Functions" ${OPTGENTEXI} >util-auto.en
186: util-auto.ja : ${CONTRIB}/names.rr gentexi
187: ${RM} -f util-auto.ja
188: cat ${CONTRIB}/names.rr | ${OXWEAVE} usage | ./gentexi --category util --ja --upnode "Utility Functions" ${OPTGENTEXI} >util-auto.ja
1.2 takayama 189: ### oxshell
190: oxshell-auto.en : ${CONTRIB}/oxshell.rr gentexi
191: ${RM} -f oxshell-auto.en
192: cat ${CONTRIB}/oxshell.rr | ${OXWEAVE} usage | ./gentexi --category oxshell --en --upnode "Oxshell Functions" ${OPTGENTEXI} >oxshell-auto.en
193: oxshell-auto.ja : ${CONTRIB}/oxshell.rr gentexi
194: ${RM} -f oxshell-auto.ja
195: cat ${CONTRIB}/oxshell.rr | ${OXWEAVE} usage | ./gentexi --category oxshell --ja --upnode "Oxshell Functions" ${OPTGENTEXI} >oxshell-auto.ja
1.1 takayama 196:
197: ### Generating online manual
198: gen-help-en: ${ENSRCS} ${ASIRDOC}/extract_func ${ENAUTO}
199: -${RM} -rf tmp-en help-en
200: mkdir help-en tmp-en
201: cp cman-en.texi ${ENSRCS} ${ENAUTO} tmp-en
202: -(cd tmp-en; makeinfo --force cman-en.texi)
203: (cd help-en; for i in ../tmp-en/asir-contrib*; do ../${ASIRDOC}/extract_func $$i; done)
1.5 takayama 204: -for i in ${SUBDIRS}; do (cd $$i; make gen-help-en); done
1.1 takayama 205:
206: gen-help-ja: ${JASRCS} ${ASIRDOC}/extract_func ${JAAUTO}
207: -${RM} -rf tmp-ja help-ja
208: mkdir help-ja tmp-ja
209: for i in cman-ja.texi ${JASRCS} ${JAAUTO}; do nkf -e $$i > tmp-ja/$$i; done
210: -(cd tmp-ja; makeinfo --force cman-ja.texi)
211: (cd help-ja; for i in ../tmp-ja/asir-contrib*; do ../${ASIRDOC}/extract_func -j $$i; done)
1.5 takayama 212: -for i in ${SUBDIRS}; do (cd $$i; make gen-help-ja); done
1.1 takayama 213:
214: gen-html-en: gen-help-en
215: -${RM} -rf html-en
216: -mkdir html-en
217: -cp tmp-en/*.texi tmp-en/*.en html-en
218: -(cd html-en; ${TEXI2HTML} cman-en.texi)
1.5 takayama 219: -for i in ${SUBDIRS}; do (cd $$i; make TEXI2HTML='${TEXI2HTML}' OXWEAVE='${OXWEAVE}' DVIPS='${DVIPS}' RM='${RM}' INSTALL_lib='${INSTALL_lib}' INSTALL_doc='${INSTALL_doc}' gen-html-en); done
1.1 takayama 220:
221: gen-html-ja: gen-help-ja
222: -mkdir html-ja
223: -cp tmp-ja/*.texi tmp-ja/*.ja html-ja
224: -cp tmp-ja/cman-ja.texi html-ja/cman-ja.texi
225: -(cd html-ja; ${TEXI2HTML} cman-ja.texi)
1.5 takayama 226: -for i in ${SUBDIRS}; do (cd $$i; make TEXI2HTML='${TEXI2HTML}' OXWEAVE='${OXWEAVE}' DVIPS='${DVIPS}' RM='${RM}' INSTALL_lib='${INSTALL_lib}' INSTALL_doc='${INSTALL_doc}' gen-html-ja); done
1.1 takayama 227:
228: install-help:
229: -make install-help-en
230: -make install-help-ja
231:
232: install-help-ja: gen-help-ja
233: ${RM} -rf ${INSTALL_lib}/asir/help-jp/xm.help
234: mkdir ${INSTALL_lib}/asir/help-jp/xm.help
1.3 noro 235: -cp -r -f help-ja/* ${INSTALL_lib}/asir/help-jp/xm.help
1.5 takayama 236: -for i in ${SUBDIRS}; do (cd $$i; make TEXI2HTML='${TEXI2HTML}' OXWEAVE='${OXWEAVE}' DVIPS='${DVIPS}' RM='${RM}' INSTALL_lib='${INSTALL_lib}' INSTALL_doc='${INSTALL_doc}' install-help-ja); done
1.1 takayama 237: install-help-en: gen-help-en
238: ${RM} -rf ${INSTALL_lib}/asir/help-eg/xm.help
239: mkdir ${INSTALL_lib}/asir/help-eg/xm.help
1.3 noro 240: -cp -r -f help-en/* ${INSTALL_lib}/asir/help-eg/xm.help
1.5 takayama 241: -for i in ${SUBDIRS}; do (cd $$i; make TEXI2HTML='${TEXI2HTML}' OXWEAVE='${OXWEAVE}' DVIPS='${DVIPS}' RM='${RM}' INSTALL_lib='${INSTALL_lib}' INSTALL_doc='${INSTALL_doc}' install-help-en); done
1.1 takayama 242:
243: install-html-help: gen-html-en gen-html-ja
244: -mkdir ${INSTALL_doc}/asir-contrib
245: -( tar cf - html-en | (cd ${INSTALL_doc}/asir-contrib ; tar xf -))
246: -( tar cf - html-ja | (cd ${INSTALL_doc}/asir-contrib ; tar xf -))
1.5 takayama 247: -for i in ${SUBDIRS}; do (cd $$i; make TEXI2HTML='${TEXI2HTML}' OXWEAVE='${OXWEAVE}' DVIPS='${DVIPS}' RM='${RM}' INSTALL_lib='${INSTALL_lib}' INSTALL_doc='${INSTALL_doc}' install-html-help); done
1.1 takayama 248:
249: install-document2 : gen-dvi-ps
250: -mkdir ${INSTALL_lib}/asir-contrib
251: -cp cman-ja.dvi ${INSTALL_doc}/asir-contrib/cman-ja.dvi
252: -$(DVIPS) cman-ja >${INSTALL_doc}/asir-contrib/cman-ja.ps
253: -cp cman-en.dvi ${INSTALL_doc}/asir-contrib/cman-en.dvi
254: -$(DVIPS) cman-en >${INSTALL_doc}/asir-contrib/cman-en.ps
1.5 takayama 255: -for i in ${SUBDIRS}; do (cd $$i; make TEXI2HTML='${TEXI2HTML}' OXWEAVE='${OXWEAVE}' DVIPS='${DVIPS}' RM='${RM}' INSTALL_lib='${INSTALL_lib}' INSTALL_doc='${INSTALL_doc}' install-document2); done
256:
1.1 takayama 257: gen-dvi-ps: all clean-mk-openxm-asir-contrib-document-dir cman-ja.dvi cman-en.dvi
258: cman-ja.dvi: ${JASRCS} ${JAAUTO}
259: -ptex cman-ja.texi
260: -ptex cman-ja.texi
261: cman-en.dvi: ${ENSRCS} ${ENAUTO}
262: -tex cman-en.texi
263: -tex cman-en.texi
264:
265: cman-ja.pdf: cman-ja.dvi
266: cman-en.pdf: cman-en.dvi
267:
268: clean-mk-openxm-asir-contrib-document-dir :
269: ${RM} -rf ${INSTALL_doc}/asir-contrib
270: ${RM} -f ./.done_install ./.done_install_document
271: mkdir ${INSTALL_doc}/asir-contrib
272: touch ${INSTALL_doc}/asir-contrib/DO_NOT_EDIT_THIS_DIRECTORY._ALL_FILES_ARE_AUTOMATICDALLY_GENERATED.
273:
274: clean:
275: -${RM} -rf ./.done_install ./.done_install_document config.log config.status autom4te.cache
276: ${RM} -f gentexi ${JAAUTO} ${ENAUTO} gentexi-in.tmp gentexi-out.tmp
277: ${RM} -f *.aux *.cp *.dvi *.fn *.ky *.log *.pg *.toc *.tp *.vr *~
278: ${RM} -f *.en *.ja
279: ${RM} -rf help-ja help-en tmp-en tmp-ja html-en html-ja
1.5 takayama 280: for i in ${SUBDIRS}; do (cd $$i; make clean); done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>