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

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

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

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