Annotation of OpenXM/src/asir-contrib/packages/doc/M/Makefile.in, Revision 1.8
1.8 ! ohara 1: # $OpenXM: OpenXM/src/asir-contrib/packages/doc/M/Makefile.in,v 1.7 2009/02/22 06:51:12 ohara Exp $
1.1 takayama 2: # Original file was ../Makefile.common
3: # Targets
1.6 ohara 4: # gen-texi : generating texi files.
5: # gen-html : generating HTML documents under html-{ja,en}
6: # gen-help : generating online help files under help-{ja,en}
1.7 ohara 7: # gen-pdf : generating dvi and pdf files here.
1.1 takayama 8: #
1.6 ohara 9: # install-help
10: # Installing online help to OpenXM/lib/asir/help-{ja,en}/xm.help
11: # install-document
12: # Copy html help and the documents in dvi, ps and pdf
13: # to OpenXM/doc/asir-contrib/{ja,en}/
1.1 takayama 14: #
15: # NOTE: install-help should be executed after installing asir2000.
16: ########################################################################
17: # How to add new documents in the category xxx
18: # "xxx*.texi <--- xxx.oxweave (manually written) + xxx*-auto.{en,ja} (automatic)"
19: # (1) "xxx.oxweave" --> xxx.en and xxx.ja
20: # xxx-auto.en and xxx-auto.ja should be included from
21: # xxx.en and xxx.ja (JASRCS, ENSRCS)
22: # NOTE: xxx.oxweave might be embedded in xxx.rr or xxx,
23: # but this style is obsolete.
24: # (2) "xxx.rr" or "xxx" --> xxx-auto.en and xxx-auto.ja
25: # (JAAUTO, ENAUTO)
26: # xxx-auto*.texi's are extracted from xxx or xxx.rr
27: # (3) xxx.en and xxx.ja should be included from cman.texi
28: # and cman-en.texi
29: # cf. glib* base*
30: ########################################################################
1.6 ohara 31: LANGUAGES = en ja
32:
33: INSTALL=@INSTALL@
34: INSTALL_DATA=@INSTALL_DATA@
35:
36: bindir=@prefix@/bin
37: LIBDIR=@prefix@/lib/asir
38: DOCDIR=@prefix@/doc/asir-contrib
39: OXWEAVE=${bindir}/oxweave
40: OXGENTEXI=${bindir}/oxgentexi
41: OXREPLACE=${bindir}/oxreplace
42: OpenXM_ROOT=@OpenXM_ROOT@
1.1 takayama 43: ASIRDOC=${OpenXM_ROOT}/src/asir-doc
44: ASIRLIB=${OpenXM_ROOT}/../OpenXM_contrib2/asir2000/lib
45: CONTRIB=${OpenXM_ROOT}/src/asir-contrib/packages/src
1.6 ohara 46: EXTRACT_FUNC=${ASIRDOC}/extract_func
1.8 ! ohara 47: PTEX=@PTEX@
1.6 ohara 48: DVIPDF=@DVIPDF@
49: MAKEINFO=@MAKEINFO@
50: #
1.1 takayama 51: OPTGENTEXI= --include
52: #OPTGENTEXI= --include --example
53: ## PS documents are installed under ${OpenXM_doc}/asir-contrib
54: DVIPS=dvips -f
1.7 ohara 55: TEXI2HTML=${ASIRDOC}/texi2html -menu
1.6 ohara 56: RM=rm -f
1.1 takayama 57: NKF=nkf
58:
1.6 ohara 59: # source files
60: SRC_TEXI = ${MYNAME}-en.texi ${MYNAME}-ja.texi
61: SRC_LANG = ${MYNAME}.en ${MYNAME}.ja
62:
63: .SUFFIXES: .en .ja .oxw .texi .dvi .pdf .ps
1.1 takayama 64:
65: .oxw.en:
66: ${OXWEAVE} C en < $< > ${<:.oxw=.en}
67:
68: .oxw.ja:
1.6 ohara 69: ${OXWEAVE} C ja < $< | ${NKF} -e > ${<:.oxw=.ja}
1.1 takayama 70:
71: .dvi.pdf:
72: ${DVIPDF} $<
73:
1.6 ohara 74: .dvi.ps:
75: ${DVIPS} $< > ${<:.dvi=.ps}
76:
77: .texi.dvi:
78: ${PTEX} $<
79: ${PTEX} $<
80:
81: all: gen-document
82:
83: ${MYNAME}-ja.dvi: ${MYNAME}.ja
84: ${MYNAME}-en.dvi: ${MYNAME}.en
85:
1.7 ohara 86: gen-pdf: ${SRC_TEXI:.texi=.pdf}
87:
1.6 ohara 88: gen-document: gen-html
89: -if [ ! -f ./.build_doc_done ]; then \
90: ${MAKE} ${SRC_TEXI:.texi=.pdf} ; \
91: touch ./.build_doc_done ; \
92: fi
93:
94: gen-texi: ${SRC_LANG} ${SRC_TEXI}
95: gen-help: gen-texi ${EXTRACT_FUNC}
96: -if [ ! -f ./.build_help_done ]; then \
97: for j in ${LANGUAGES} ; do \
98: mkdir -p help-$$j tmp-$$j ; \
99: for f in ${MYNAME}-$$j.texi *.$$j ; do \
100: if [ -f $$f ]; then cp $$f tmp-$$j/ ; fi ; \
101: done ; \
102: (cd tmp-$$j; ${MAKEINFO} --force ${MYNAME}-$$j.texi) ; \
103: (cd help-$$j; for i in ../tmp-$$j/asir-contrib*; do ${EXTRACT_FUNC} $$i; done) ; \
104: done ; \
105: touch ./.build_help_done ; \
106: fi
107:
108: gen-html: gen-help
109: -if [ ! -f ./.build_html_done ]; then \
110: for j in ${LANGUAGES} ; do \
111: mkdir -p html-$$j ; \
112: for f in tmp-$$j/*.texi tmp-$$j/*.$$j ; do \
113: if [ -f $$f ]; then cp $$f html-$$j/ ; fi ; \
114: done ; \
115: (cd html-$$j; ${TEXI2HTML} ${MYNAME}-$$j.texi ; \
116: ${RM} *.$$j ${MYNAME}-$$j.texi) ; \
117: done ;\
118: touch ./.build_html_done ; \
119: fi
120:
121: install-help: gen-help
122: -if [ ! -f ./.install_help_done ]; then \
123: for j in ${LANGUAGES} ; do \
124: mkdir -p ${LIBDIR}/help-$$j/xm.help ; \
125: ${INSTALL_DATA} help-$$j/* ${LIBDIR}/help-$$j/xm.help/ ; \
126: done ;\
127: touch ./.install_help_done ; \
128: fi
129:
130: install-document: gen-document
131: -if [ ! -f ./.install_doc_done ]; then \
132: for j in ${LANGUAGES} ; do \
133: mkdir -p "${DOCDIR}/$$j/${MYNAME}-html" ; \
134: (cd html-$$j; tar cf - .) | (cd "${DOCDIR}/$$j/${MYNAME}-html" ; tar xf -) ; \
1.7 ohara 135: ${INSTALL_DATA} ${MYNAME}-$$j.dvi ${MYNAME}-$$j.pdf ${DOCDIR}/$$j/ ; \
1.6 ohara 136: done ; \
137: touch ./.install_doc_done ; \
138: fi
1.1 takayama 139:
140: clean: clean_private
1.6 ohara 141: ${RM} gentexi-in.tmp gentexi-out.tmp
142: ${RM} *.aux *.cp *.dvi *.fn *.ky *.log *.pg *.toc *.tp *.vr *~
143: ${RM} *.en *.ja
144: ${RM} .build_* .install_*
145: -for j in ${LANGUAGES} ; do \
146: ${RM} -r help-$$j tmp-$$j html-$$j ; \
147: ${RM} ${MYNAME}-$$j.ps ${MYNAME}-$$j.pdf ${MYNAME}-$$j.dvi ; \
148: done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>