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