[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / misc / packages / Windows

Annotation of OpenXM/misc/packages/Windows/Makefile, Revision 1.17

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>