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

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

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

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