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