Annotation of OpenXM/misc/packages/Windows/Makefile, Revision 1.29
1.29 ! takayama 1: # $OpenXM: OpenXM/misc/packages/Windows/Makefile,v 1.28 2002/09/30 02:30:38 takayama Exp $
1.1 takayama 2: OpenXM_TOP=../../../../OpenXM
1.15 takayama 3: ASIR_LANG=ja
4: #ASIR_LANG=en
1.22 takayama 5: VERSION=1.2.2
1.16 takayama 6: WGET_ARG=--passive-ftp ftp://ftp:${USER}.openxm.org@ftp.math.kobe-u.ac.jp/pub/asir/asirwin-${ASIR_LANG}.tgz
1.21 fujimoto 7: WGET_PHC=--passive-ftp ftp://ftp:${USER}.openxm.org@ftp.math.kobe-u.ac.jp/pub/OpenXM/misc/1.2.2/phc.exe
1.22 takayama 8: WGET_HEAD=--passive-ftp ftp://ftp:${USER}.openxm.org@ftp.math.kobe-u.ac.jp/pub/OpenXM/Head/openxm-head.tar.gz
1.15 takayama 9:
1.1 takayama 10: WINASIR=c:/home/asir
1.15 takayama 11:
1.1 takayama 12: usage:
1.29 ! takayama 13: @echo "Targets: all build-tgz clean clean-work link-for-debug copy-to-ftp-area"
1.22 takayama 14: @echo " remove-experimental gen-cd"
1.26 takayama 15: @echo " The target all, gen-cd builds the directory OpenXM-win"
1.24 takayama 16: @echo "Other targets: win-correction3, build-bat"
1.26 takayama 17: @echo " asir-book "
1.1 takayama 18:
1.26 takayama 19: clean: clean-OpenXM-win clean-asir-book
20: clean-OpenXM-win:
21: -rm -rf OpenXM-win .copy-binary-done .copy-binary-asir-done .copy-binary-phc-done OpenXM-win.tgz .OpenXM-win.tgz.done oxasir-win.rr .copy-cygwin-dlls-done .build-binary-openxm-cygwin-done OpenXM-unix OpenXM-doc
1.22 takayama 22:
1.17 takayama 23: clean-work:
24: -rm -rf work
1.20 takayama 25: clean0:
26: -rm -rf .copy-binary-done oxasir-win.rr .copy-cygwin-dlls-done
1.15 takayama 27:
1.21 fujimoto 28: all: copy-binary-phc copy-binary copy-binary-asir win-correction win-correction-clean
1.1 takayama 29:
1.15 takayama 30: build-binary-openxm-cygwin:
31: if [ ! -f .build-binary-openxm-cygwin-done ] ; then \
1.21 fujimoto 32: (cd ${OpenXM_TOP}/src ; make install-kan-ox ; make install-phc) ; \
1.15 takayama 33: touch .build-binary-openxm-cygwin-done ; \
34: fi
1.1 takayama 35:
1.15 takayama 36: copy-binary: copy-binary-openxm-cygwin
37: copy-binary-openxm-cygwin: build-binary-openxm-cygwin
1.1 takayama 38: -mkdir OpenXM-win
1.15 takayama 39: -mkdir OpenXM-win/src
1.1 takayama 40: if [ ! -f .copy-binary-done ] ; then \
41: (cd OpenXM-win ; \
1.19 takayama 42: rsync -avz --delete --exclude CVS ../${OpenXM_TOP}/bin . ; \
43: rsync -avz --delete --exclude CVS ../${OpenXM_TOP}/lib . ; \
44: rsync -avz --delete --exclude CVS ../${OpenXM_TOP}/rc . ; \
45: rsync -avz --delete --exclude CVS ../${OpenXM_TOP}/man . ; \
46: rsync -avz --delete --exclude CVS ../${OpenXM_TOP}/src/asir-contrib src ; \
1.17 takayama 47: find . -name 'CVS' -print | xargs rm -rf ; \
1.1 takayama 48: ) ; \
1.22 takayama 49: cp Readme-CD/readme-ja.html OpenXM-win ; \
50: cp Readme-CD/readme-en.html OpenXM-win ; \
1.1 takayama 51: touch .copy-binary-done ; \
52: fi
53:
1.16 takayama 54: copy-binary-asir:
55: if [ ! -f .copy-binary-asir-done ] ; then \
56: make copy-binary-asir-from-internet ; \
57: fi
1.15 takayama 58:
59: copy-binary-asir-from-internet:
60: -mkdir OpenXM-win
61: if [ ! -d work ] ; then mkdir work ; fi
62: if [ ! -f work/asirwin-${ASIR_LANG}.tgz ] ; then \
63: (cd work ; wget ${WGET_ARG} ) ; \
64: fi
1.16 takayama 65: (cd OpenXM-win ; tar xzvf ../work/asirwin-${ASIR_LANG}.tgz)
1.15 takayama 66: touch .copy-binary-asir-done
67:
68: copy-binary-asir-from-local-disk:
1.2 takayama 69: -mkdir OpenXM-win
70: -mkdir OpenXM-win/asir
71: if [ ! -f .copy-binary-asir-done ] ; then \
72: (cd OpenXM-win ; \
73: (cd ${WINASIR} ; tar czf - bin lib) | (cd asir ; tar xzvf -) ; \
74: ) ; \
1.3 takayama 75: touch .copy-binary-asir-done ; \
1.2 takayama 76: fi
1.21 fujimoto 77:
78: copy-binary-phc:
79: if [ ! -f .copy-binary-phc-done ] ; then \
80: make copy-binary-phc-from-internet ; \
81: fi
82:
83: copy-binary-phc-from-internet:
84: if [ ! -f ${OpenXM_TOP}/bin/phc.exe ] ; then \
85: (cd ${OpenXM_TOP}/bin ; wget ${WGET_PHC} ) ; \
86: fi
87: touch .copy-binary-phc-done
1.2 takayama 88:
1.15 takayama 89: copy-cygwin-dlls:
90: if [ ! -f .copy-cygwin-dlls-done ] ; then \
91: cp /bin/cygwin1.dll OpenXM-win/bin-windows ; \
92: cp /bin/cygwin1.dll OpenXM-win/bin ; \
93: cp /bin/cygwin1.dll OpenXM-win/lib/sm1/bin ; \
94: cp /usr/X11R6/bin/*.dll OpenXM-win/asir/bin ; \
95: cp /usr/X11R6/bin/*.dll OpenXM-win/bin ; \
96: touch .copy-cygwin-dlls-done ; \
97: fi
98:
1.10 takayama 99: win-correction: copy-binary oxasir-win.rr
1.7 takayama 100: make win-correction2
1.15 takayama 101: win-correction1: build-bat copy-cygwin-dlls
1.1 takayama 102: -mkdir OpenXM-win/bin-windows
1.7 takayama 103: # (cd OpenXM-win/rc ; make clean ; make)
104: win-correction2: win-correction1
105: cp OpenXM-win/lib/sm1/*.sm1 OpenXM-win/asir/bin
106: cp OpenXM-win/lib/sm1/*.sm1 OpenXM-win/bin
107: cp OpenXM-win/lib/sm1/*.sm1 OpenXM-win/asir/bin
108: cp OpenXM-win/lib/sm1/*.sm1 OpenXM-win/bin
109: cp OpenXM-win/lib/sm1/oxasir.asir OpenXM-win/asir/bin
110: cp OpenXM-win/lib/sm1/oxasir.asir OpenXM-win/bin
1.16 takayama 111: -cp OpenXM-win/bin/ox_asir OpenXM-win/bin/ox_asir.exe
1.10 takayama 112: cp oxasir-win.rr OpenXM-win/bin
113: cp oxasir-win.rr OpenXM-win/asir/bin
114: cp oxasir-win.rr OpenXM-win/lib/asir
115: cp oxasir-win.rr OpenXM-win/lib/sm1
1.23 takayama 116:
117: ## it is for an obsolete asirwin-*.tgz
118: win-correction3: debug-tools/crlf
119: cp ${OpenXM_TOP}/../OpenXM_contrib2/asir2000/lib/xm OpenXM-win/asir/lib
120: cp ${OpenXM_TOP}/../OpenXM_contrib2/asir2000/lib/glib OpenXM-win/asir/lib
121: ./debug-tools/crlf OpenXM-win/asir/lib/xm
122: ./debug-tools/crlf OpenXM-win/asir/lib/glib
1.15 takayama 123:
1.7 takayama 124: win-correction-clean:
1.17 takayama 125: -find OpenXM-win -name '*~' -print | xargs rm -f
126: -rm -f OpenXM-win/lib/sm1/*.jpeg OpenXM-win/lib/sm1/*.jpg
1.7 takayama 127: build-tgz: win-correction-clean
1.6 takayama 128: if [ ! -f .OpenXM-win.tgz.done ]; then \
129: tar czvf OpenXM-win.tgz OpenXM-win ; touch .OpenXM-win.tgz.done ; \
130: fi
1.5 takayama 131:
1.6 takayama 132: copy-to-orange: build-tgz
1.5 takayama 133: scp OpenXM-win.tgz taka@orange:tmp3
1.29 ! takayama 134: copy-to-ftp-area: build-tgz
! 135: scp OpenXM-win.tgz taka@orange:/export/home01/ftp/pub/OpenXM/Head
1.10 takayama 136:
1.15 takayama 137: link-for-debug:
138: (cd ${OpenXM_TOP} ; cd bin ; ln -s ../../OpenXM_contrib2/asir2000/asir .)
139: (cd ${OpenXM_TOP} ; cd src/kxx ; make install-for-debug)
1.10 takayama 140:
141: oxapp : oxapp.c
142:
1.11 takayama 143: oxasir-win.rr : oxapp oxpp oxpp2
144: rm -f oxasir-win.tmp oxasir-win.tmp2 oxasir-win.tmp3 oxpp2.tmp1 oxpp2.tmp2
145: cat ${OpenXM_TOP}/src/kan96xx/Doc/oxasir.asir >>oxasir-win.tmp
146: cat ${OpenXM_TOP}/rc/asirrc >>oxasir-win.tmp
147: ./oxpp2 oxasir-win.tmp >oxasir-win.rr
148: # rm -f oxasir-win.tmp oxasir-win.tmp2 oxasir-win.tmp3 oxpp2.tmp1 oxpp2.tmp2
1.12 takayama 149:
1.14 takayama 150: debug-tools/crlf : debug-tools/crlf.c
151: (cd debug-tools; gcc -o crlf crlf.c)
1.17 takayama 152: debug-tools/debug-sed : debug-tools/debug-sed.c
153: (cd debug-tools; gcc -o debug-sed debug-sed.c)
154: build-bat: debug-tools/crlf debug-tools/debug-sed
1.12 takayama 155: -mkdir OpenXM-win/bin-windows
1.13 takayama 156: (cd debug-tools; sed -f dist.sed <asirgui-cd.bat >../OpenXM-win/bin-windows/asirgui-cd.bat ; ./crlf ../OpenXM-win/bin-windows/asirgui-cd.bat)
157: (cd debug-tools; sed -f dist.sed <webasir.bat >../OpenXM-win/bin-windows/webasir.bat ; ./crlf ../OpenXM-win/bin-windows/webasir.bat)
158: (cd debug-tools; sed -f dist.sed <websm1.bat >../OpenXM-win/bin-windows/websm1.bat ; ./crlf ../OpenXM-win/bin-windows/websm1.bat)
159: (rm -f ../OpenXM-win/bin-windows/*.BAK ../OpenXM-win/bin-windows/*.bak)
1.12 takayama 160: cp OpenXM-win/bin-windows/asirgui-cd.bat OpenXM-win/asir/bin
1.17 takayama 161: rm -f debug-tools/debug.sed ; debug-tools/debug-sed `pwd` >debug-tools/debug.sed
162: (cd debug-tools; sed -f debug.sed <asirgui-cd.bat >asirgui-debug.bat ; ./crlf asirgui-debug.bat)
163:
164: remove-experimental:
165: -rm -f OpenXM-win/bin-windows/*web*.bat
166:
1.5 takayama 167:
1.22 takayama 168: gen-cd:
1.25 takayama 169: -(make ASIR_LANG=${ASIR_LANG} all; make remove-experimental)
1.22 takayama 170: -mkdir OpenXM-unix
171: cp Readme-CD/readme-unix-en.html OpenXM-unix
172: (cd OpenXM-unix; wget ${WGET_HEAD} )
1.24 takayama 173: @echo "Copy OpenXM-unix and OpenXM-win to the CD."
1.26 takayama 174:
175: asir-book: mkdir-asir-book copy-to-asir-book
176: clean-asir-book:
177: -rm -rf asir-book .copy-to-asir-book-asir-bin .copy-to-asir-book-prog .copy-to-asir-book-meadow
178:
179: mkdir-asir-book:
180: -(mkdir asir-book)
181: -(mkdir asir-book/asir)
182: -(mkdir asir-book/Meadow)
183: -(mkdir asir-book/Prog)
184:
185: copy-to-asir-book: copy-to-asir-book-asir-bin copy-to-asir-book-prog copy-to-asir-book-meadow asir-book/index.html
186:
187: copy-to-asir-book-asir-bin: copy-binary-asir
1.28 takayama 188: -if [ ! -f .copy-to-asir-book-asir-bin ]; then \
189: (cd asir-book ; tar xzvf ../work/asirwin-${ASIR_LANG}.tgz) ;\
1.26 takayama 190: fi
191: touch .copy-to-asir-book-asir-bin
192:
193: copy-to-asir-book-prog:
1.28 takayama 194: if [ ! -f .copy-to-asir-book-prog ]; then \
1.26 takayama 195: (cd work; cvs-asir-book checkout asir-book) ; \
196: (cp work/asir-book/Prog/*.rr asir-book/Prog) ; \
197: fi
198: touch .copy-to-asir-book-prog
199:
1.27 takayama 200: MEADOW=Meadow-1.14-i386-base.tar.gz
1.26 takayama 201: WGET_MEADOW=--passive-ftp ftp://ftp:${USER}.openxm.org@ftp.math.kobe-u.ac.jp/pub/OpenXM/misc/1.2.2/${MEADOW}
1.27 takayama 202: WINTAR=tar.exe
203: WGET_WINTAR=--passive-ftp ftp://ftp:${USER}.openxm.org@ftp.math.kobe-u.ac.jp/pub/OpenXM/misc/1.2.2/${WINTAR}
204: WINGZIP=gzip.exe
205: WGET_WINGZIP=--passive-ftp ftp://ftp:${USER}.openxm.org@ftp.math.kobe-u.ac.jp/pub/OpenXM/misc/1.2.2/${WINGZIP}
1.26 takayama 206: copy-to-asir-book-meadow:
1.28 takayama 207: if [ ! -f .copy-to-asir-book-meadow ]; then \
208: if [ ! -f work/${MEADOW} ]; then \
1.26 takayama 209: (cd work ; wget ${WGET_MEADOW} ) ; \
1.27 takayama 210: (cd work ; wget ${WGET_WINTAR} ) ; \
211: (cd work ; wget ${WGET_WINGZIP} ) ; \
1.26 takayama 212: fi ; \
1.28 takayama 213: (cd asir-book ; cp ../work/${MEADOW} Meadow) ; \
214: (cd asir-book ; cp ../work/${WINTAR} Meadow) ; \
215: (cd asir-book ; cp ../work/${WINGZIP} Meadow) ; \
1.26 takayama 216: fi
217: touch .copy-to-asir-book-meadow
218:
219: asir-book/index.html: Readme-CD/asir-book-index.html
220: cp Readme-CD/asir-book-index.html asir-book/index.html
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>