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