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