Annotation of OpenXM/misc/packages/Windows/Makefile, Revision 1.16
1.16 ! takayama 1: # $OpenXM: OpenXM/misc/packages/Windows/Makefile,v 1.15 2002/07/28 06:31:01 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: 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.16 ! takayama 40: copy-binary-asir:
! 41: if [ ! -f .copy-binary-asir-done ] ; then \
! 42: make copy-binary-asir-from-internet ; \
! 43: fi
1.15 takayama 44:
45: copy-binary-asir-from-internet:
46: -mkdir OpenXM-win
47: if [ ! -d work ] ; then mkdir work ; fi
48: if [ ! -f work/asirwin-${ASIR_LANG}.tgz ] ; then \
49: (cd work ; wget ${WGET_ARG} ) ; \
50: fi
1.16 ! takayama 51: (cd OpenXM-win ; tar xzvf ../work/asirwin-${ASIR_LANG}.tgz)
1.15 takayama 52: touch .copy-binary-asir-done
53:
54: copy-binary-asir-from-local-disk:
1.2 takayama 55: -mkdir OpenXM-win
56: -mkdir OpenXM-win/asir
57: if [ ! -f .copy-binary-asir-done ] ; then \
58: (cd OpenXM-win ; \
59: (cd ${WINASIR} ; tar czf - bin lib) | (cd asir ; tar xzvf -) ; \
60: ) ; \
1.3 takayama 61: touch .copy-binary-asir-done ; \
1.2 takayama 62: fi
63:
1.15 takayama 64: copy-cygwin-dlls:
65: if [ ! -f .copy-cygwin-dlls-done ] ; then \
66: cp /bin/cygwin1.dll OpenXM-win/bin-windows ; \
67: cp /bin/cygwin1.dll OpenXM-win/bin ; \
68: cp /bin/cygwin1.dll OpenXM-win/lib/sm1/bin ; \
69: cp /usr/X11R6/bin/*.dll OpenXM-win/asir/bin ; \
70: cp /usr/X11R6/bin/*.dll OpenXM-win/bin ; \
71: touch .copy-cygwin-dlls-done ; \
72: fi
73:
1.10 takayama 74: win-correction: copy-binary oxasir-win.rr
1.7 takayama 75: make win-correction2
1.15 takayama 76: win-correction1: build-bat copy-cygwin-dlls
1.1 takayama 77: -mkdir OpenXM-win/bin-windows
1.15 takayama 78: -cp ${STARTEXE} OpenXM-win/bin-windows
1.7 takayama 79: # (cd OpenXM-win/rc ; make clean ; make)
80: win-correction2: win-correction1
1.15 takayama 81: -cp ${STARTEXE} OpenXM-win/bin
82: -cp ${STARTEXE} OpenXM-win/asir/bin
1.7 takayama 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:
96: -find OpenXM-win -name '*~' -print | xargs rm
97: -rm OpenXM-win/lib/sm1/*.jpeg OpenXM-win/lib/sm1/*.jpg
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)
121: build-bat: debug-tools/crlf
1.12 takayama 122: -mkdir OpenXM-win/bin-windows
1.13 takayama 123: (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)
124: (cd debug-tools; sed -f dist.sed <webasir.bat >../OpenXM-win/bin-windows/webasir.bat ; ./crlf ../OpenXM-win/bin-windows/webasir.bat)
125: (cd debug-tools; sed -f dist.sed <websm1.bat >../OpenXM-win/bin-windows/websm1.bat ; ./crlf ../OpenXM-win/bin-windows/websm1.bat)
126: (rm -f ../OpenXM-win/bin-windows/*.BAK ../OpenXM-win/bin-windows/*.bak)
1.12 takayama 127: cp OpenXM-win/bin-windows/asirgui-cd.bat OpenXM-win/asir/bin
1.5 takayama 128:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>