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

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

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

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