Annotation of OpenXM/misc/packages/Windows/Makefile, Revision 1.22
1.22 ! takayama 1: # $OpenXM: OpenXM/misc/packages/Windows/Makefile,v 1.21 2002/08/09 07:51:28 fujimoto 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.15 takayama 13: @echo "Targets: all build-tgz clean clean-work link-for-debug"
1.22 ! takayama 14: @echo " remove-experimental gen-cd"
1.1 takayama 15:
16: clean:
1.22 ! takayama 17: -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
! 18:
1.17 takayama 19: clean-work:
20: -rm -rf work
1.20 takayama 21: clean0:
22: -rm -rf .copy-binary-done oxasir-win.rr .copy-cygwin-dlls-done
1.15 takayama 23:
1.21 fujimoto 24: all: copy-binary-phc copy-binary copy-binary-asir win-correction win-correction-clean
1.1 takayama 25:
1.15 takayama 26: build-binary-openxm-cygwin:
27: if [ ! -f .build-binary-openxm-cygwin-done ] ; then \
1.21 fujimoto 28: (cd ${OpenXM_TOP}/src ; make install-kan-ox ; make install-phc) ; \
1.15 takayama 29: touch .build-binary-openxm-cygwin-done ; \
30: fi
1.1 takayama 31:
1.15 takayama 32: copy-binary: copy-binary-openxm-cygwin
33: copy-binary-openxm-cygwin: build-binary-openxm-cygwin
1.1 takayama 34: -mkdir OpenXM-win
1.15 takayama 35: -mkdir OpenXM-win/src
1.1 takayama 36: if [ ! -f .copy-binary-done ] ; then \
37: (cd OpenXM-win ; \
1.19 takayama 38: rsync -avz --delete --exclude CVS ../${OpenXM_TOP}/bin . ; \
39: rsync -avz --delete --exclude CVS ../${OpenXM_TOP}/lib . ; \
40: rsync -avz --delete --exclude CVS ../${OpenXM_TOP}/rc . ; \
41: rsync -avz --delete --exclude CVS ../${OpenXM_TOP}/man . ; \
42: rsync -avz --delete --exclude CVS ../${OpenXM_TOP}/src/asir-contrib src ; \
1.17 takayama 43: find . -name 'CVS' -print | xargs rm -rf ; \
1.1 takayama 44: ) ; \
1.22 ! takayama 45: cp Readme-CD/readme-ja.html OpenXM-win ; \
! 46: cp Readme-CD/readme-en.html OpenXM-win ; \
1.1 takayama 47: touch .copy-binary-done ; \
48: fi
49:
1.16 takayama 50: copy-binary-asir:
51: if [ ! -f .copy-binary-asir-done ] ; then \
52: make copy-binary-asir-from-internet ; \
53: fi
1.15 takayama 54:
55: copy-binary-asir-from-internet:
56: -mkdir OpenXM-win
57: if [ ! -d work ] ; then mkdir work ; fi
58: if [ ! -f work/asirwin-${ASIR_LANG}.tgz ] ; then \
59: (cd work ; wget ${WGET_ARG} ) ; \
60: fi
1.16 takayama 61: (cd OpenXM-win ; tar xzvf ../work/asirwin-${ASIR_LANG}.tgz)
1.15 takayama 62: touch .copy-binary-asir-done
63:
64: copy-binary-asir-from-local-disk:
1.2 takayama 65: -mkdir OpenXM-win
66: -mkdir OpenXM-win/asir
67: if [ ! -f .copy-binary-asir-done ] ; then \
68: (cd OpenXM-win ; \
69: (cd ${WINASIR} ; tar czf - bin lib) | (cd asir ; tar xzvf -) ; \
70: ) ; \
1.3 takayama 71: touch .copy-binary-asir-done ; \
1.2 takayama 72: fi
1.21 fujimoto 73:
74: copy-binary-phc:
75: if [ ! -f .copy-binary-phc-done ] ; then \
76: make copy-binary-phc-from-internet ; \
77: fi
78:
79: copy-binary-phc-from-internet:
80: if [ ! -f ${OpenXM_TOP}/bin/phc.exe ] ; then \
81: (cd ${OpenXM_TOP}/bin ; wget ${WGET_PHC} ) ; \
82: fi
83: touch .copy-binary-phc-done
1.2 takayama 84:
1.15 takayama 85: copy-cygwin-dlls:
86: if [ ! -f .copy-cygwin-dlls-done ] ; then \
87: cp /bin/cygwin1.dll OpenXM-win/bin-windows ; \
88: cp /bin/cygwin1.dll OpenXM-win/bin ; \
89: cp /bin/cygwin1.dll OpenXM-win/lib/sm1/bin ; \
90: cp /usr/X11R6/bin/*.dll OpenXM-win/asir/bin ; \
91: cp /usr/X11R6/bin/*.dll OpenXM-win/bin ; \
92: touch .copy-cygwin-dlls-done ; \
93: fi
94:
1.10 takayama 95: win-correction: copy-binary oxasir-win.rr
1.7 takayama 96: make win-correction2
1.15 takayama 97: win-correction1: build-bat copy-cygwin-dlls
1.1 takayama 98: -mkdir OpenXM-win/bin-windows
1.7 takayama 99: # (cd OpenXM-win/rc ; make clean ; make)
100: win-correction2: win-correction1
101: cp OpenXM-win/lib/sm1/*.sm1 OpenXM-win/asir/bin
102: cp OpenXM-win/lib/sm1/*.sm1 OpenXM-win/bin
103: cp OpenXM-win/lib/sm1/*.sm1 OpenXM-win/asir/bin
104: cp OpenXM-win/lib/sm1/*.sm1 OpenXM-win/bin
105: cp OpenXM-win/lib/sm1/oxasir.asir OpenXM-win/asir/bin
106: cp OpenXM-win/lib/sm1/oxasir.asir OpenXM-win/bin
1.16 takayama 107: -cp OpenXM-win/bin/ox_asir OpenXM-win/bin/ox_asir.exe
1.10 takayama 108: cp oxasir-win.rr OpenXM-win/bin
109: cp oxasir-win.rr OpenXM-win/asir/bin
110: cp oxasir-win.rr OpenXM-win/lib/asir
111: cp oxasir-win.rr OpenXM-win/lib/sm1
1.15 takayama 112:
1.7 takayama 113: win-correction-clean:
1.17 takayama 114: -find OpenXM-win -name '*~' -print | xargs rm -f
115: -rm -f OpenXM-win/lib/sm1/*.jpeg OpenXM-win/lib/sm1/*.jpg
1.7 takayama 116: build-tgz: win-correction-clean
1.6 takayama 117: if [ ! -f .OpenXM-win.tgz.done ]; then \
118: tar czvf OpenXM-win.tgz OpenXM-win ; touch .OpenXM-win.tgz.done ; \
119: fi
1.5 takayama 120:
1.6 takayama 121: copy-to-orange: build-tgz
1.5 takayama 122: scp OpenXM-win.tgz taka@orange:tmp3
1.10 takayama 123:
1.15 takayama 124: link-for-debug:
125: (cd ${OpenXM_TOP} ; cd bin ; ln -s ../../OpenXM_contrib2/asir2000/asir .)
126: (cd ${OpenXM_TOP} ; cd src/kxx ; make install-for-debug)
1.10 takayama 127:
128: oxapp : oxapp.c
129:
1.11 takayama 130: oxasir-win.rr : oxapp oxpp oxpp2
131: rm -f oxasir-win.tmp oxasir-win.tmp2 oxasir-win.tmp3 oxpp2.tmp1 oxpp2.tmp2
132: cat ${OpenXM_TOP}/src/kan96xx/Doc/oxasir.asir >>oxasir-win.tmp
133: cat ${OpenXM_TOP}/rc/asirrc >>oxasir-win.tmp
134: ./oxpp2 oxasir-win.tmp >oxasir-win.rr
135: # rm -f oxasir-win.tmp oxasir-win.tmp2 oxasir-win.tmp3 oxpp2.tmp1 oxpp2.tmp2
1.12 takayama 136:
1.14 takayama 137: debug-tools/crlf : debug-tools/crlf.c
138: (cd debug-tools; gcc -o crlf crlf.c)
1.17 takayama 139: debug-tools/debug-sed : debug-tools/debug-sed.c
140: (cd debug-tools; gcc -o debug-sed debug-sed.c)
141: build-bat: debug-tools/crlf debug-tools/debug-sed
1.12 takayama 142: -mkdir OpenXM-win/bin-windows
1.13 takayama 143: (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)
144: (cd debug-tools; sed -f dist.sed <webasir.bat >../OpenXM-win/bin-windows/webasir.bat ; ./crlf ../OpenXM-win/bin-windows/webasir.bat)
145: (cd debug-tools; sed -f dist.sed <websm1.bat >../OpenXM-win/bin-windows/websm1.bat ; ./crlf ../OpenXM-win/bin-windows/websm1.bat)
146: (rm -f ../OpenXM-win/bin-windows/*.BAK ../OpenXM-win/bin-windows/*.bak)
1.12 takayama 147: cp OpenXM-win/bin-windows/asirgui-cd.bat OpenXM-win/asir/bin
1.17 takayama 148: rm -f debug-tools/debug.sed ; debug-tools/debug-sed `pwd` >debug-tools/debug.sed
149: (cd debug-tools; sed -f debug.sed <asirgui-cd.bat >asirgui-debug.bat ; ./crlf asirgui-debug.bat)
150:
151: remove-experimental:
152: -rm -f OpenXM-win/bin-windows/*web*.bat
153:
1.5 takayama 154:
1.22 ! takayama 155: gen-cd:
! 156: -(make all; make remove-experimental)
! 157: -mkdir OpenXM-unix
! 158: cp Readme-CD/readme-unix-en.html OpenXM-unix
! 159: (cd OpenXM-unix; wget ${WGET_HEAD} )
! 160: @echo "Copy OpenXM-unix and OpenXM-win to the CD."
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>