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