Annotation of OpenXM/src/asir-contrib/packages/doc/Makefile.in, Revision 1.2
1.2 ! takayama 1: #$OpenXM: OpenXM/src/asir-contrib/packages/doc/Makefile.in,v 1.1 2004/07/02 07:48:47 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}
63:
64: .SUFFIXES: .en .ja .oxweave .dvi .pdf
65:
66: .oxweave.en:
67: ${RM} -f ${<:.oxweave=.en}
68: ${OXWEAVE} C en < $< > ${<:.oxweave=.en}
69:
70: .oxweave.ja:
71: ${RM} -f ${<:.oxweave=.ja}
72: ${OXWEAVE} C ja < $< > ${<:.oxweave=.ja}
73:
74: .dvi.pdf:
75: ${DVIPDF} $<
76:
77: all : gentexi ${JASRCS} ${ENSRCS} ${JAAUTO} ${ENAUTO}
78: @echo "Type in tex cman-en.texi to generate the manual(en) in dvi format."
79: @echo "Type in ptex cman-ja.texi to generate the manual(ja) in dvi format."
80:
81: install :
82: @if [ ! -f ./.done_install ] ; then \
83: make install2 ; \
84: touch ./.done_install ; \
85: else \
86: echo "NOTE: Installation is already done. Remove .done_install for a new installation." ; \
87: fi
88:
89: install-document : install-html-help
90: @if [ ! -f ./.done_install_document ] ; then \
91: make install-document2 ; \
92: touch ./.done_install_document ; \
93: else \
94: echo "NOTE: Installation of document is already done. Remove .done_install_document for a new installation." ; \
95: fi
96:
97: install2 : install-help
98:
99: gentexi : gentexi.c
100: gcc -o gentexi gentexi.c
101:
102: oxom.ja : ${CONTRIB}/om
103: ${RM} -f oxom.ja
104: ${OXWEAVE} C ja <${CONTRIB}/om >oxom.ja
105: oxom.en : ${CONTRIB}/om
106: ${RM} -f oxom.en
107: ${OXWEAVE} C en <${CONTRIB}/om >oxom.en
108:
109: ### base
110: base-auto.en : ${CONTRIB}/names.rr gentexi
111: ${RM} -f base-auto.en
112: ${OXWEAVE} usage <${CONTRIB}/names.rr | ./gentexi --category base --en --upnode "Basic (Standard Functions)" ${OPTGENTEXI} >base-auto.en
113: base-auto.ja : ${CONTRIB}/names.rr gentexi
114: ${RM} -f base-auto.ja
115: ${OXWEAVE} usage <${CONTRIB}/names.rr | ./gentexi --category base --ja --upnode "Basic (Standard Functions)" ${OPTGENTEXI} >base-auto.ja
116:
117: ### plucker
118: plucker-auto.en : ${CONTRIB}/plucker.rr gentexi
119: ${RM} -f plucker-auto.en
120: ${OXWEAVE} usage <${CONTRIB}/plucker.rr | ./gentexi --category plucker --en --upnode "Plucker relations" ${OPTGENTEXI} >plucker-auto.en
121: plucker-auto.ja : ${CONTRIB}/plucker.rr gentexi
122: ${RM} -f plucker-auto.ja
123: ${OXWEAVE} usage <${CONTRIB}/plucker.rr | ./gentexi --category plucker --ja --upnode "Plucker relations" ${OPTGENTEXI} >plucker-auto.ja
124:
125: ### number
126: number-auto.en : ${CONTRIB}/names.rr gentexi
127: ${RM} -f number-auto.en
128: cat ${CONTRIB}/names.rr | ${OXWEAVE} usage | ./gentexi --category number --en --upnode "Numbers (Standard Mathematical Functions)" ${OPTGENTEXI} >number-auto.en
129: number-auto.ja : ${CONTRIB}/names.rr gentexi
130: ${RM} -f number-auto.ja
131: cat ${CONTRIB}/names.rr | ${OXWEAVE} usage | ./gentexi --category number --ja --upnode "Numbers (Standard Mathematical Functions)" ${OPTGENTEXI} >number-auto.ja
132:
133: ### matrix
134: matrix-auto.en : ${CONTRIB}/names.rr gentexi
135: ${RM} -f matrix-auto.en
136: ${OXWEAVE} usage <${CONTRIB}/names.rr | ./gentexi --category matrix --en --upnode "Matrix (Standard Mathematical Functions)" ${OPTGENTEXI} >matrix-auto.en
137: matrix-auto.ja : ${CONTRIB}/names.rr gentexi
138: ${RM} -f matrix-auto.ja
139: ${OXWEAVE} usage <${CONTRIB}/names.rr | ./gentexi --category matrix --ja --upnode "Matrix (Standard Mathematical Functions)" ${OPTGENTEXI} >matrix-auto.ja
140:
141: ### print
142: print-auto.en : ${CONTRIB}/names.rr gentexi
143: ${RM} -f print-auto.en
144: ${OXWEAVE} usage <${CONTRIB}/names.rr | ./gentexi --category print --en --upnode "Print (Standard Mathematical Functions)" ${OPTGENTEXI} >print-auto.en
145: print-auto.ja : ${CONTRIB}/names.rr gentexi
146: ${RM} -f print-auto.ja
147: ${OXWEAVE} usage <${CONTRIB}/names.rr | ./gentexi --category print --ja --upnode "Print (Standard Mathematical Functions)" ${OPTGENTEXI} >print-auto.ja
148:
149: ### poly
150: poly-auto.en : ${CONTRIB}/names.rr gentexi
151: ${RM} -f poly-auto.en
152: ${OXWEAVE} usage <${CONTRIB}/names.rr | ./gentexi --category poly --en --upnode "Polynomials (Standard Mathematical Functions)" ${OPTGENTEXI} >poly-auto.en
153: poly-auto.ja : ${CONTRIB}/names.rr gentexi
154: ${RM} -f poly-auto.ja
155: ${OXWEAVE} usage <${CONTRIB}/names.rr | ./gentexi --category poly --ja --upnode "Polynomials (Standard Mathematical Functions)" ${OPTGENTEXI} >poly-auto.ja
156: ### sm1
157: sm1-auto.en : ${CONTRIB}/sm1 gentexi
158: ${RM} -f sm1-auto.en
159: ${OXWEAVE} usage <${CONTRIB}/sm1 | ./gentexi --category sm1 --en --upnode "SM1 Functions" ${OPTGENTEXI} >sm1-auto.en
160: sm1-auto.ja : ${CONTRIB}/sm1 gentexi
161: ${RM} -f sm1-auto.ja
162: ${OXWEAVE} usage <${CONTRIB}/sm1 | ./gentexi --category sm1 --ja --upnode "SM1 Functions" ${OPTGENTEXI} >sm1-auto.ja
163:
164: ### glib
165: glib-auto.en : ${ASIRLIB}/glib gentexi
166: ${RM} -f glib-auto.en
167: cat ${ASIRLIB}/glib | ${OXWEAVE} usage | ./gentexi --category glib --en --upnode "Graphic Library (2 dimensional)" ${OPTGENTEXI} >glib-auto.en
168: glib-auto.ja : ${ASIRLIB}/glib gentexi
169: ${RM} -f glib-auto.ja
170: cat ${ASIRLIB}/glib | ${OXWEAVE} usage | ./gentexi --category glib --ja --upnode "Graphic Library (2 dimensional)" ${OPTGENTEXI} >glib-auto.ja
171:
172: ### pfp
173: pfp-auto.en : ${CONTRIB}/pfpcoh.rr ${CONTRIB}/pfphom.rr gentexi
174: ${RM} -f pfp-auto.en
175: cat ${CONTRIB}/pfpcoh.rr ${CONTRIB}/pfphom.rr | ${OXWEAVE} usage | ./gentexi --en --upnode Pfpcohom ${OPTGENTEXI} >pfp-auto.en
176: pfp-auto.ja : ${CONTRIB}/pfpcoh.rr ${CONTRIB}/pfphom.rr gentexi
177: ${RM} -f pfp-auto.ja
178: cat ${CONTRIB}/pfpcoh.rr ${CONTRIB}/pfphom.rr | ${OXWEAVE} usage | ./gentexi --ja --upnode Pfpcohom ${OPTGENTEXI} >pfp-auto.ja
179:
180: ### util
181: util-auto.en : ${CONTRIB}/names.rr gentexi
182: ${RM} -f util-auto.en
183: cat ${CONTRIB}/names.rr | ${OXWEAVE} usage | ./gentexi --category util --en --upnode "Utility Functions" ${OPTGENTEXI} >util-auto.en
184: util-auto.ja : ${CONTRIB}/names.rr gentexi
185: ${RM} -f util-auto.ja
186: cat ${CONTRIB}/names.rr | ${OXWEAVE} usage | ./gentexi --category util --ja --upnode "Utility Functions" ${OPTGENTEXI} >util-auto.ja
1.2 ! takayama 187: ### oxshell
! 188: oxshell-auto.en : ${CONTRIB}/oxshell.rr gentexi
! 189: ${RM} -f oxshell-auto.en
! 190: cat ${CONTRIB}/oxshell.rr | ${OXWEAVE} usage | ./gentexi --category oxshell --en --upnode "Oxshell Functions" ${OPTGENTEXI} >oxshell-auto.en
! 191: oxshell-auto.ja : ${CONTRIB}/oxshell.rr gentexi
! 192: ${RM} -f oxshell-auto.ja
! 193: cat ${CONTRIB}/oxshell.rr | ${OXWEAVE} usage | ./gentexi --category oxshell --ja --upnode "Oxshell Functions" ${OPTGENTEXI} >oxshell-auto.ja
1.1 takayama 194:
195: ### Generating online manual
196: gen-help-en: ${ENSRCS} ${ASIRDOC}/extract_func ${ENAUTO}
197: -${RM} -rf tmp-en help-en
198: mkdir help-en tmp-en
199: cp cman-en.texi ${ENSRCS} ${ENAUTO} tmp-en
200: -(cd tmp-en; makeinfo --force cman-en.texi)
201: (cd help-en; for i in ../tmp-en/asir-contrib*; do ../${ASIRDOC}/extract_func $$i; done)
202:
203: gen-help-ja: ${JASRCS} ${ASIRDOC}/extract_func ${JAAUTO}
204: -${RM} -rf tmp-ja help-ja
205: mkdir help-ja tmp-ja
206: for i in cman-ja.texi ${JASRCS} ${JAAUTO}; do nkf -e $$i > tmp-ja/$$i; done
207: -(cd tmp-ja; makeinfo --force cman-ja.texi)
208: (cd help-ja; for i in ../tmp-ja/asir-contrib*; do ../${ASIRDOC}/extract_func -j $$i; done)
209:
210: gen-html-en: gen-help-en
211: -${RM} -rf html-en
212: -mkdir html-en
213: -cp tmp-en/*.texi tmp-en/*.en html-en
214: -(cd html-en; ${TEXI2HTML} cman-en.texi)
215:
216: gen-html-ja: gen-help-ja
217: -mkdir html-ja
218: -cp tmp-ja/*.texi tmp-ja/*.ja html-ja
219: -cp tmp-ja/cman-ja.texi html-ja/cman-ja.texi
220: -(cd html-ja; ${TEXI2HTML} cman-ja.texi)
221:
222: install-help:
223: -make install-help-en
224: -make install-help-ja
225:
226: install-help-ja: gen-help-ja
227: ${RM} -rf ${INSTALL_lib}/asir/help-jp/xm.help
228: mkdir ${INSTALL_lib}/asir/help-jp/xm.help
229: -cp -f help-ja/* ${INSTALL_lib}/asir/help-jp/xm.help
230: install-help-en: gen-help-en
231: ${RM} -rf ${INSTALL_lib}/asir/help-eg/xm.help
232: mkdir ${INSTALL_lib}/asir/help-eg/xm.help
233: -cp -f help-en/* ${INSTALL_lib}/asir/help-eg/xm.help
234:
235: install-html-help: gen-html-en gen-html-ja
236: -mkdir ${INSTALL_doc}/asir-contrib
237: -( tar cf - html-en | (cd ${INSTALL_doc}/asir-contrib ; tar xf -))
238: -( tar cf - html-ja | (cd ${INSTALL_doc}/asir-contrib ; tar xf -))
239:
240: install-document2 : gen-dvi-ps
241: -mkdir ${INSTALL_lib}/asir-contrib
242: -cp cman-ja.dvi ${INSTALL_doc}/asir-contrib/cman-ja.dvi
243: -$(DVIPS) cman-ja >${INSTALL_doc}/asir-contrib/cman-ja.ps
244: -cp cman-en.dvi ${INSTALL_doc}/asir-contrib/cman-en.dvi
245: -$(DVIPS) cman-en >${INSTALL_doc}/asir-contrib/cman-en.ps
246: gen-dvi-ps: all clean-mk-openxm-asir-contrib-document-dir cman-ja.dvi cman-en.dvi
247: cman-ja.dvi: ${JASRCS} ${JAAUTO}
248: -ptex cman-ja.texi
249: -ptex cman-ja.texi
250: cman-en.dvi: ${ENSRCS} ${ENAUTO}
251: -tex cman-en.texi
252: -tex cman-en.texi
253:
254: cman-ja.pdf: cman-ja.dvi
255: cman-en.pdf: cman-en.dvi
256:
257: clean-mk-openxm-asir-contrib-document-dir :
258: ${RM} -rf ${INSTALL_doc}/asir-contrib
259: ${RM} -f ./.done_install ./.done_install_document
260: mkdir ${INSTALL_doc}/asir-contrib
261: touch ${INSTALL_doc}/asir-contrib/DO_NOT_EDIT_THIS_DIRECTORY._ALL_FILES_ARE_AUTOMATICDALLY_GENERATED.
262:
263: clean:
264: -${RM} -rf ./.done_install ./.done_install_document config.log config.status autom4te.cache
265: ${RM} -f gentexi ${JAAUTO} ${ENAUTO} gentexi-in.tmp gentexi-out.tmp
266: ${RM} -f *.aux *.cp *.dvi *.fn *.ky *.log *.pg *.toc *.tp *.vr *~
267: ${RM} -f *.en *.ja
268: ${RM} -rf help-ja help-en tmp-en tmp-ja html-en html-ja
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>