Annotation of OpenXM/misc/packages/Windows/Makefile, Revision 1.15
1.15 ! takayama 1: # $OpenXM: OpenXM/misc/packages/Windows/Makefile,v 1.14 2002/01/25 02:56:15 takayama Exp $
1.1 takayama 2: OpenXM_TOP=../../../../OpenXM
1.15 ! takayama 3: ASIR_LANG=ja
! 4: #ASIR_LANG=en
! 5: WGET_ARG=--pasive-ftp ftp://ftp:${USER}.openxm.org@ftp.math.kobe-u.ac.jp/pub/asir/asirwin-${ASIR_LANG}.tgz
! 6:
1.1 takayama 7: STARTEXE=c:/windows/command/start.exe
8: WINASIR=c:/home/asir
1.15 ! takayama 9:
1.1 takayama 10: usage:
1.15 ! takayama 11: @echo "Targets: all build-tgz clean clean-work link-for-debug"
1.1 takayama 12:
13: clean:
1.15 ! takayama 14: -rm -rf OpenXM-win .copy-binary-done .copy-binary-asir-done OpenXM-win.tgz .OpenXM-win.tgz.done oxasir-win.rr .copy-cygwin-dlls-done .build-binary-openxm-cygwin-done
! 15:
! 16: all: copy-binary copy-binary-asir win-correction
1.1 takayama 17:
1.15 ! takayama 18: build-binary-openxm-cygwin:
! 19: if [ ! -f .build-binary-openxm-cygwin-done ] ; then \
! 20: (cd ${OpenXM_TOP}/src ; make install-kan-ox ) ; \
! 21: touch .build-binary-openxm-cygwin-done ; \
! 22: fi
1.1 takayama 23:
1.15 ! takayama 24: copy-binary: copy-binary-openxm-cygwin
! 25: copy-binary-openxm-cygwin: build-binary-openxm-cygwin
1.1 takayama 26: -mkdir OpenXM-win
1.15 ! takayama 27: -mkdir OpenXM-win/src
1.1 takayama 28: if [ ! -f .copy-binary-done ] ; then \
29: (cd OpenXM-win ; \
1.15 ! takayama 30: rsync -avz --delete ../${OpenXM_TOP}/bin . ; \
! 31: rsync -avz --delete ../${OpenXM_TOP}/lib . ; \
! 32: rsync -avz --delete ../${OpenXM_TOP}/rc . ; \
! 33: rsync -avz --delete ../${OpenXM_TOP}/man . ; \
! 34: rsync -avz --delete ../${OpenXM_TOP}/src/asir-contrib src ; \
1.1 takayama 35: ) ; \
1.9 takayama 36: cp readme-ja.html OpenXM-win ; \
1.1 takayama 37: touch .copy-binary-done ; \
38: fi
39:
1.15 ! takayama 40: copy-binary-asir: copy-binary-asir-from-internet
! 41:
! 42: copy-binary-asir-from-internet:
! 43: -mkdir OpenXM-win
! 44: if [ ! -d work ] ; then mkdir work ; fi
! 45: if [ ! -f work/asirwin-${ASIR_LANG}.tgz ] ; then \
! 46: (cd work ; wget ${WGET_ARG} ) ; \
! 47: (cd work ; mv ftp.math.kobe-u.ac.jp/pub/asir/asirwin-${ASIR_LANG}.tgz .) ; \
! 48: fi
! 49: (cd OpenXM-win ; tar xzvf ../../work/asirwin-${ASIR_LANG}.tgz)
! 50: touch .copy-binary-asir-done
! 51:
! 52: copy-binary-asir-from-local-disk:
1.2 takayama 53: -mkdir OpenXM-win
54: -mkdir OpenXM-win/asir
55: if [ ! -f .copy-binary-asir-done ] ; then \
56: (cd OpenXM-win ; \
57: (cd ${WINASIR} ; tar czf - bin lib) | (cd asir ; tar xzvf -) ; \
58: ) ; \
1.3 takayama 59: touch .copy-binary-asir-done ; \
1.2 takayama 60: fi
61:
1.15 ! takayama 62: copy-cygwin-dlls:
! 63: if [ ! -f .copy-cygwin-dlls-done ] ; then \
! 64: cp /bin/cygwin1.dll OpenXM-win/bin-windows ; \
! 65: cp /bin/cygwin1.dll OpenXM-win/bin ; \
! 66: cp /bin/cygwin1.dll OpenXM-win/lib/sm1/bin ; \
! 67: cp /usr/X11R6/bin/*.dll OpenXM-win/asir/bin ; \
! 68: cp /usr/X11R6/bin/*.dll OpenXM-win/bin ; \
! 69: touch .copy-cygwin-dlls-done ; \
! 70: fi
! 71:
1.10 takayama 72: win-correction: copy-binary oxasir-win.rr
1.7 takayama 73: make win-correction2
1.15 ! takayama 74: win-correction1: build-bat copy-cygwin-dlls
1.1 takayama 75: -mkdir OpenXM-win/bin-windows
1.15 ! takayama 76: -cp ${STARTEXE} OpenXM-win/bin-windows
1.7 takayama 77: # (cd OpenXM-win/rc ; make clean ; make)
78: win-correction2: win-correction1
1.15 ! takayama 79: -cp ${STARTEXE} OpenXM-win/bin
! 80: -cp ${STARTEXE} OpenXM-win/asir/bin
1.7 takayama 81: cp OpenXM-win/lib/sm1/*.sm1 OpenXM-win/asir/bin
82: cp OpenXM-win/lib/sm1/*.sm1 OpenXM-win/bin
83: cp OpenXM-win/lib/sm1/*.sm1 OpenXM-win/asir/bin
84: cp OpenXM-win/lib/sm1/*.sm1 OpenXM-win/bin
85: cp OpenXM-win/lib/sm1/oxasir.asir OpenXM-win/asir/bin
86: cp OpenXM-win/lib/sm1/oxasir.asir OpenXM-win/bin
1.8 takayama 87: cp OpenXM-win/bin/ox_asir OpenXM-win/bin/ox_asir.exe
1.10 takayama 88: cp oxasir-win.rr OpenXM-win/bin
89: cp oxasir-win.rr OpenXM-win/asir/bin
90: cp oxasir-win.rr OpenXM-win/lib/asir
91: cp oxasir-win.rr OpenXM-win/lib/sm1
1.15 ! takayama 92:
1.7 takayama 93: win-correction-clean:
94: -find OpenXM-win -name '*~' -print | xargs rm
95: -rm OpenXM-win/lib/sm1/*.jpeg OpenXM-win/lib/sm1/*.jpg
96: build-tgz: win-correction-clean
1.6 takayama 97: if [ ! -f .OpenXM-win.tgz.done ]; then \
98: tar czvf OpenXM-win.tgz OpenXM-win ; touch .OpenXM-win.tgz.done ; \
99: fi
1.5 takayama 100:
1.6 takayama 101: copy-to-orange: build-tgz
1.5 takayama 102: scp OpenXM-win.tgz taka@orange:tmp3
1.10 takayama 103:
1.15 ! takayama 104: link-for-debug:
! 105: (cd ${OpenXM_TOP} ; cd bin ; ln -s ../../OpenXM_contrib2/asir2000/asir .)
! 106: (cd ${OpenXM_TOP} ; cd src/kxx ; make install-for-debug)
1.10 takayama 107:
108: oxapp : oxapp.c
109:
1.11 takayama 110: oxasir-win.rr : oxapp oxpp oxpp2
111: rm -f oxasir-win.tmp oxasir-win.tmp2 oxasir-win.tmp3 oxpp2.tmp1 oxpp2.tmp2
112: cat ${OpenXM_TOP}/src/kan96xx/Doc/oxasir.asir >>oxasir-win.tmp
113: cat ${OpenXM_TOP}/rc/asirrc >>oxasir-win.tmp
114: ./oxpp2 oxasir-win.tmp >oxasir-win.rr
115: # rm -f oxasir-win.tmp oxasir-win.tmp2 oxasir-win.tmp3 oxpp2.tmp1 oxpp2.tmp2
1.12 takayama 116:
1.14 takayama 117: debug-tools/crlf : debug-tools/crlf.c
118: (cd debug-tools; gcc -o crlf crlf.c)
119: build-bat: debug-tools/crlf
1.12 takayama 120: -mkdir OpenXM-win/bin-windows
1.13 takayama 121: (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)
122: (cd debug-tools; sed -f dist.sed <webasir.bat >../OpenXM-win/bin-windows/webasir.bat ; ./crlf ../OpenXM-win/bin-windows/webasir.bat)
123: (cd debug-tools; sed -f dist.sed <websm1.bat >../OpenXM-win/bin-windows/websm1.bat ; ./crlf ../OpenXM-win/bin-windows/websm1.bat)
124: (rm -f ../OpenXM-win/bin-windows/*.BAK ../OpenXM-win/bin-windows/*.bak)
1.12 takayama 125: cp OpenXM-win/bin-windows/asirgui-cd.bat OpenXM-win/asir/bin
1.5 takayama 126:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>