Annotation of OpenXM/doc/OpenXM-web/Makefile, Revision 1.58
1.58 ! takayama 1: # $OpenXM: OpenXM/doc/OpenXM-web/Makefile,v 1.57 2020/03/14 02:25:07 takayama Exp $
1.1 takayama 2: #
1.43 takayama 3: OpenXM_HOME=../..
4: OpenXM_include=${OpenXM_HOME}/include
1.39 takayama 5: OXHOME=/home/web/OpenXM
1.40 takayama 6: #OXHOME=/home/taka/afo/OpenXM ## for test.
1.39 takayama 7: CURRENT=${OXHOME}/Current
8: CURRENT_DOC=${CURRENT}/doc
9: STABLE=${OXHOME}/Stable
10: ASCM2001=${OXHOME}/ascm2001
1.1 takayama 11: OpenXM_doc=../.
1.5 takayama 12: OpenXM_spec=../OpenXM-specs
1.25 takayama 13: OpenXM_calc=../calc2000p
1.34 takayama 14: OpenXM_ascm=../ascm2001
1.3 takayama 15: DVIPS=dvips -f
1.32 takayama 16: LATEX2HTML=latex2html -tmp /tmp
1.44 takayama 17: OXWEAVE=${OpenXM_HOME}/bin/oxweave
1.28 takayama 18: OW_FLAG=--recursive
1.39 takayama 19: RSYNC=rsync -Cavz
20: RM=rm
1.23 takayama 21:
1.47 takayama 22: CURRENT_FILES=index.html index-ja.html index-spec.html index-spec-ja.html \
23: OpenXM-RFC.html \
24: cmotag.h oxMessageTag.h smCommand.h \
1.39 takayama 25: anonymous.html ERRATA.html
1.37 takayama 26:
1.57 takayama 27: OXWEAVE_FILES_in_doc=install-en.txt install-ja.txt OpenXM-FAQ-en.txt OpenXM-FAQ-ja.txt OpenXM-FAQ-ja.txt.html
1.5 takayama 28:
1.39 takayama 29: LOGOS=logo-openxm2.jpg logo-openxm5.jpg logo-openxm_simple0.jpg
1.5 takayama 30:
1.39 takayama 31: MANUALS=asir2000 asir-contrib kan96xx ox_math
1.35 takayama 32:
1.54 takayama 33: usage:
34: @echo "targets are all"
35: @echo "all-top (copy only top html files to web)"
36: @echo "all-current (generates html files form texi etc and copy to web)"
37: @echo "all-current-index (no new generation of html files from texi etc, <all-current)"
38: @echo "all-current-spec"
1.39 takayama 39: all: all-stable all-ascm2001 all-current all-top all-current-spec
1.40 takayama 40: @echo "************************************************************"
41: @echo "* cp -r /home/web/OpenXM/Current /home/web/OpenXM/x.y.z *"
42: @echo "* to generate a page of the specific version x.y.z *"
43: @echo "* Edit /home/web/OpenXM/x.y.z/index.html by hand. *"
44: @echo "************************************************************"
1.2 takayama 45:
1.39 takayama 46: configure-dir:
47: if test ! -f .configure-dir.done ; \
48: then \
49: if test ! -d ${OXHOME} ; then mkdir ${OXHOME} ; fi ; \
50: if test ! -d ${CURRENT} ; then mkdir ${CURRENT} ; fi ; \
51: if test ! -d ${CURRENT}/doc ; then mkdir ${CURRENT}/doc ; fi ; \
52: if test ! -d ${STABLE} ; then mkdir ${STABLE} ; fi ; \
1.40 takayama 53: if test ! -d ${STABLE}/html ; then mkdir ${STABLE}/html ; fi ; \
54: if test ! -d ${STABLE}/html/OpenXM-poster ; then mkdir ${STABLE}/html/OpenXM-poster ; fi ; \
1.39 takayama 55: if test ! -d ${ASCM2001} ; then mkdir ${ASCM2001} ; fi ; \
56: touch .configure-dir.done ; \
57: fi
58:
59: all-stable: configure-dir
1.40 takayama 60: make -f Makefile-intro all-html-poster
61: (cd tmp-poster ; ${RSYNC} func1 func2 efficient ${STABLE}/html/OpenXM-poster)
1.39 takayama 62:
63: all-ascm2001: configure-dir
1.40 takayama 64: make -f Makefile-intro all-html-ascm
65: -(cd ${OpenXM_ascm} ; ${RSYNC} ascm2001 ${OXHOME}/ascm2001)
1.39 takayama 66:
1.53 takayama 67: all-current-index: configure-dir
1.39 takayama 68: cp index-doc.html ${CURRENT_DOC}/index-doc.html
1.47 takayama 69: cp index-doc-ja.html ${CURRENT_DOC}/index-doc-ja.html
1.52 takayama 70: cp google-ja.html ${CURRENT_DOC}/google-ja.html
1.50 takayama 71: cp index-doc-asir-contrib2-ja.html ${CURRENT_DOC}/asir-contrib
72: cp index-doc-asir-contrib2-en.html ${CURRENT_DOC}/asir-contrib
1.47 takayama 73: cp index-license.html ${CURRENT_DOC}/index-license.html
1.55 takayama 74: cp index-doc-asir-ja.html ${CURRENT_DOC}/index-doc-asir-ja.html
1.56 takayama 75: cp index-doc-asir-en.html ${CURRENT_DOC}/index-doc-asir-en.html
76: cp index-doc-asir-en.html ${CURRENT_DOC}/index-doc-asir.html
1.51 takayama 77: cp video.html ${CURRENT}/video.html
78: cp video-ja.html ${CURRENT}/video-ja.html
1.58 ! takayama 79: ${RSYNC} ${CURRENT_FILES} ${CURRENT}
1.53 takayama 80: all-current: all-current-index configure-dir
81: (cd ${OpenXM_doc} ; make all)
82: (cd ${OpenXM_doc} ; ${RSYNC} ${OXWEAVE_FILES_in_doc} ${CURRENT})
83: ${RSYNC} ${CURRENT_FILES} ${CURRENT}
1.39 takayama 84: @echo "***************************************************"
85: @echo "* Have you done (cd OpenXM/src ; make install) *"
1.46 takayama 86: @echo "* (cd OpenXM/src ; make install-document) "
1.39 takayama 87: @echo "* to generate the documents? *"
88: @echo "***************************************************"
89: (cd ${OpenXM_doc} ; ${RSYNC} ${MANUALS} ${CURRENT_DOC})
90:
91: all-current-spec: configure-dir
92: (cd ${OpenXM_spec} ; make CURRENT=${CURRENT} install-web-all)
93:
94: all-top: configure-dir
95: cp top.html ${OXHOME}/index.html
1.47 takayama 96: cp top-ja.html ${OXHOME}/index-ja.html
97: cp inobuta-ja.html ${OXHOME}/inobuta-ja.html
1.48 takayama 98: cp news-o.html ${OXHOME}/news-o.html
99: cp news-o-ja.html ${OXHOME}/news-o-ja.html
1.45 takayama 100: cp ../../Copyright/contrib-and-hist-ja.txt ${OXHOME}
1.39 takayama 101: ${RSYNC} people.html ${OXHOME}
1.49 takayama 102: (cd Screenshot ; ${RSYNC} *.html ${OXHOME})
1.39 takayama 103: ${RSYNC} ${LOGOS} ${STABLE}
1.25 takayama 104:
105: clean:
1.39 takayama 106: -${RM} .[a-z]*done
1.40 takayama 107: -make -f Makefile-intro clean
108: -(cd ${OpenXM_spec} ; make clean)
1.15 takayama 109:
1.39 takayama 110: clean-top:
111: -${RM} ${OXHOME}/index.html
112: clean-everything: clean clean-top
113: -${RM} -rf ${CURRENT} ${STABLE} ${ASCM2001} ${CURRENT_DOC}
1.40 takayama 114: -${RM} -rf tmp-poster
1.37 takayama 115:
1.41 takayama 116:
117: ###
118: ### target for buggy latex2html
119: ### (jlatex2html machine)% make
120: ### (latex2html machine)% make clean-en-html
121: ### (latex2html machine)% make
122: clean-en-html:
123: -(cd ../OpenXM-specs ; make clean-en-done)
1.42 takayama 124: -(make -f Makefile-intro clean)
1.43 takayama 125:
126: install-exec: ${OpenXM_include}/ox/cmotag.h ${OpenXM_include}/ox/oxMessageTag.h ${OpenXM_include}/ox/smCommand.h
127: ${OpenXM_include}/ox/cmotag.h: cmotag.h
128: cp cmotag.h ${OpenXM_include}/ox
129: ${OpenXM_include}/ox/oxMessageTag.h: oxMessageTag.h
130: cp oxMessageTag.h ${OpenXM_include}/ox
131: ${OpenXM_include}/ox/smCommand.h: smCommand.h
132: cp smCommand.h ${OpenXM_include}/ox
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>