Annotation of OpenXM/misc/packages/Windows/Makefile, Revision 1.14
1.14 ! takayama 1: # $OpenXM: OpenXM/misc/packages/Windows/Makefile,v 1.13 2002/01/16 09:11:58 takayama Exp $
1.1 takayama 2: OpenXM_TOP=../../../../OpenXM
3: STARTEXE=c:/windows/command/start.exe
4: WINASIR=c:/home/asir
5: usage:
1.7 takayama 6: @echo "Targets: binary-tgz build-tgz clean"
1.1 takayama 7:
8: clean:
1.10 takayama 9: -rm -rf OpenXM-win .copy-binary-done .copy-binary-asir-done OpenXM-win.tgz .OpenXM-win.tgz.done oxasir-win.rr
1.1 takayama 10:
1.2 takayama 11: binary-tgz: copy-binary copy-binary-asir win-correction
1.1 takayama 12:
13: copy-binary:
14: -mkdir OpenXM-win
15: if [ ! -f .copy-binary-done ] ; then \
16: (cd OpenXM-win ; \
1.2 takayama 17: (cd ../${OpenXM_TOP}; tar czf - bin lib rc man src/asir-contrib) | tar xzvf - ; \
1.1 takayama 18: ) ; \
1.9 takayama 19: cp readme-ja.html OpenXM-win ; \
1.1 takayama 20: touch .copy-binary-done ; \
21: fi
22:
1.2 takayama 23: copy-binary-asir:
24: -mkdir OpenXM-win
25: -mkdir OpenXM-win/asir
26: if [ ! -f .copy-binary-asir-done ] ; then \
27: (cd OpenXM-win ; \
28: (cd ${WINASIR} ; tar czf - bin lib) | (cd asir ; tar xzvf -) ; \
29: ) ; \
1.3 takayama 30: touch .copy-binary-asir-done ; \
1.2 takayama 31: fi
32:
1.10 takayama 33: win-correction: copy-binary oxasir-win.rr
1.7 takayama 34: make win-correction2
1.12 takayama 35: win-correction1: build-bat
1.1 takayama 36: -mkdir OpenXM-win/bin-windows
37: cp ${STARTEXE} OpenXM-win/bin-windows
38: cp /bin/cygwin1.dll OpenXM-win/bin-windows
39: cp /bin/cygwin1.dll OpenXM-win/bin
40: cp /bin/cygwin1.dll OpenXM-win/lib/sm1/bin
1.7 takayama 41: # (cd OpenXM-win/rc ; make clean ; make)
42: win-correction2: win-correction1
43: cp ${STARTEXE} OpenXM-win/bin
44: cp ${STARTEXE} OpenXM-win/asir/bin
45: cp /usr/X11R6/bin/*.dll OpenXM-win/asir/bin
46: cp /usr/X11R6/bin/*.dll OpenXM-win/bin
47: cp OpenXM-win/lib/sm1/*.sm1 OpenXM-win/asir/bin
48: cp OpenXM-win/lib/sm1/*.sm1 OpenXM-win/bin
49: cp OpenXM-win/lib/sm1/*.sm1 OpenXM-win/asir/bin
50: cp OpenXM-win/lib/sm1/*.sm1 OpenXM-win/bin
51: cp OpenXM-win/lib/sm1/oxasir.asir OpenXM-win/asir/bin
52: cp OpenXM-win/lib/sm1/oxasir.asir OpenXM-win/bin
1.8 takayama 53: cp OpenXM-win/bin/ox_asir OpenXM-win/bin/ox_asir.exe
1.10 takayama 54: cp oxasir-win.rr OpenXM-win/bin
55: cp oxasir-win.rr OpenXM-win/asir/bin
56: cp oxasir-win.rr OpenXM-win/lib/asir
57: cp oxasir-win.rr OpenXM-win/lib/sm1
1.7 takayama 58: win-correction-clean:
59: -find OpenXM-win -name '*~' -print | xargs rm
60: -rm OpenXM-win/lib/sm1/*.jpeg OpenXM-win/lib/sm1/*.jpg
61: build-tgz: win-correction-clean
1.6 takayama 62: if [ ! -f .OpenXM-win.tgz.done ]; then \
63: tar czvf OpenXM-win.tgz OpenXM-win ; touch .OpenXM-win.tgz.done ; \
64: fi
1.5 takayama 65:
1.6 takayama 66: copy-to-orange: build-tgz
1.5 takayama 67: scp OpenXM-win.tgz taka@orange:tmp3
1.10 takayama 68:
69:
70: oxapp : oxapp.c
71:
1.11 takayama 72: oxasir-win.rr : oxapp oxpp oxpp2
73: rm -f oxasir-win.tmp oxasir-win.tmp2 oxasir-win.tmp3 oxpp2.tmp1 oxpp2.tmp2
74: cat ${OpenXM_TOP}/src/kan96xx/Doc/oxasir.asir >>oxasir-win.tmp
75: cat ${OpenXM_TOP}/rc/asirrc >>oxasir-win.tmp
76: ./oxpp2 oxasir-win.tmp >oxasir-win.rr
77: # rm -f oxasir-win.tmp oxasir-win.tmp2 oxasir-win.tmp3 oxpp2.tmp1 oxpp2.tmp2
1.12 takayama 78:
1.14 ! takayama 79: debug-tools/crlf : debug-tools/crlf.c
! 80: (cd debug-tools; gcc -o crlf crlf.c)
! 81: build-bat: debug-tools/crlf
1.12 takayama 82: -mkdir OpenXM-win/bin-windows
1.13 takayama 83: (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)
84: (cd debug-tools; sed -f dist.sed <webasir.bat >../OpenXM-win/bin-windows/webasir.bat ; ./crlf ../OpenXM-win/bin-windows/webasir.bat)
85: (cd debug-tools; sed -f dist.sed <websm1.bat >../OpenXM-win/bin-windows/websm1.bat ; ./crlf ../OpenXM-win/bin-windows/websm1.bat)
86: (rm -f ../OpenXM-win/bin-windows/*.BAK ../OpenXM-win/bin-windows/*.bak)
1.12 takayama 87: cp OpenXM-win/bin-windows/asirgui-cd.bat OpenXM-win/asir/bin
1.5 takayama 88:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>