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

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

1.43    ! takayama    1: # $OpenXM: OpenXM/misc/packages/Windows/Makefile,v 1.42 2005/10/15 06:25:30 takayama Exp $
1.1       takayama    2: OpenXM_TOP=../../../../OpenXM
1.15      takayama    3: ASIR_LANG=ja
                      4: #ASIR_LANG=en
1.42      takayama    5: VERSION=1.2.3
1.43    ! takayama    6: WGET_ARG=http://www.math.kobe-u.ac.jp/pub/asir/asirwin-${ASIR_LANG}.tgz
        !             7: WGET_PHC=http://www.math.kobe-u.ac.jp/pub/OpenXM/misc/1.2.2/phc.exe
        !             8: WGET_HEAD=http://www.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.43    ! takayama   12: #obtained by chgcheck command
        !            13: DLLS_ox_asir=/bin/cygX11*dll /bin/cygxcb*.dll /bin/cygXau*.dll \
        !            14:      /bin/cygXdmcp*.dll /bin/cygWaw*dll \
        !            15:      /bin/cygXext*.dll /bin/cygXmu*.dll /bin/cygXt*.dll \
        !            16:      /bin/cygIcE*.dll /bin/cygSM*.dll \
        !            17:     /bin/cygICE*.dll /bin/cygSM*.dll /bin/cyg/bin/cyguuid*.dll \
        !            18:     /bin/cygintl*.dll /bin/cygiconv*.dll \
        !            19:     /bin/cyggcc_s-seh*.dll /bin/cygXpm*.dll
        !            20:
1.1       takayama   21: usage:
1.43    ! takayama   22:        @echo "make clean ; make oxpari-gen-zipls"
1.29      takayama   23:        @echo "Targets: all build-tgz clean clean-work link-for-debug copy-to-ftp-area"
1.22      takayama   24:        @echo "         remove-experimental gen-cd"
1.26      takayama   25:        @echo "  The target all, gen-cd builds the directory OpenXM-win"
1.24      takayama   26:        @echo "Other targets: win-correction3, build-bat"
1.31      takayama   27:        @echo "               asir-book, copy-asir-book-to-ftp-area "
1.1       takayama   28:
1.26      takayama   29: clean: clean-OpenXM-win clean-asir-book
                     30: clean-OpenXM-win:
1.30      takayama   31:        -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 .OpenXM-win.tgz.copy.done
1.22      takayama   32:
1.17      takayama   33: clean-work:
                     34:        -rm -rf work
1.20      takayama   35: clean0:
                     36:        -rm -rf .copy-binary-done oxasir-win.rr .copy-cygwin-dlls-done
1.15      takayama   37:
1.21      fujimoto   38: all: copy-binary-phc copy-binary copy-binary-asir win-correction win-correction-clean
1.1       takayama   39:
1.15      takayama   40: build-binary-openxm-cygwin:
                     41:        if [ ! -f .build-binary-openxm-cygwin-done ] ; then \
1.38      takayama   42:                (cd ${OpenXM_TOP}/src ; make install-asir-contrib ) ; \
1.43    ! takayama   43:                (cd ${OpenXM_TOP}/src ; make install-oxpari ) ; \
1.15      takayama   44:                touch .build-binary-openxm-cygwin-done ; \
                     45:        fi
1.1       takayama   46:
1.43    ! takayama   47: oxpari-copy-binary-cygwin: build-binary-openxm-cygwin
        !            48:        -mkdir OpenXM-win
        !            49:        -mkdir -p OpenXM-win/bin
        !            50:        if [ ! -f .oxpari-copy-binary-done ] ; then \
        !            51:          (cd OpenXM-win ; \
        !            52:           cp  ../${OpenXM_TOP}/bin/ox_pari bin ; \
        !            53:           cp  ../${OpenXM_TOP}/bin/ox bin ; \
        !            54:           cp  ../${OpenXM_TOP}/bin/cyggc*.dll bin ; \
        !            55:           cp  ../${OpenXM_TOP}/bin/sm1 bin ; \
        !            56:           cp  ../${OpenXM_TOP}/bin/ox_sm1 bin ; \
        !            57:          ) ; \
        !            58:           touch .oxpari-copy-binary-oxpari-done ; \
        !            59:        fi
        !            60: oxpari-copy-cygwin-dlls:
        !            61:        if [ ! -f .oxpari-copy-cygwin-dlls-done ] ; then \
        !            62:         cp /bin/cygwin1.dll OpenXM-win/bin ; \
        !            63:         touch .oxpari-copy-cygwin-dlls-done ; \
        !            64:        fi
        !            65:
        !            66: oxpari-gen-zip: oxpari-copy-binary-cygwin oxpari-copy-cygwin-dlls
        !            67:        -mkdir -p OpenXM-win/lib/
        !            68:        cp ${OpenXM_TOP}/src/asir-contrib/packages/src/oxpari-win.rr OpenXM-win/lib
        !            69:        zip -r openxm-win-oxpari.zip OpenXM-win
        !            70:        @echo "Copy openxm-win-oxpari.zip by hand to OpenXM/Current"
        !            71:
1.15      takayama   72: copy-binary: copy-binary-openxm-cygwin
1.43    ! takayama   73:
1.15      takayama   74: copy-binary-openxm-cygwin: build-binary-openxm-cygwin
1.1       takayama   75:        -mkdir OpenXM-win
1.43    ! takayama   76:        -mkdir -p OpenXM-win/src
        !            77:        -mkdir -p OpenXM-win/bin-windows
1.1       takayama   78:        if [ ! -f .copy-binary-done ] ; then \
                     79:          (cd OpenXM-win ; \
1.19      takayama   80:           rsync -avz --delete --exclude CVS ../${OpenXM_TOP}/bin . ; \
                     81:           rsync -avz --delete --exclude CVS ../${OpenXM_TOP}/lib . ; \
                     82:           rsync -avz --delete --exclude CVS ../${OpenXM_TOP}/rc . ; \
                     83:           rsync -avz --delete --exclude CVS ../${OpenXM_TOP}/man . ; \
                     84:           rsync -avz --delete --exclude CVS ../${OpenXM_TOP}/src/asir-contrib src ; \
1.17      takayama   85:           find . -name 'CVS' -print | xargs rm -rf ; \
1.34      takayama   86:           find . -name 'DO_NOT_EDIT*' -print | xargs rm -rf ; \
1.1       takayama   87:          ) ; \
1.22      takayama   88:           cp Readme-CD/readme-ja.html OpenXM-win ; \
                     89:           cp Readme-CD/readme-en.html OpenXM-win ; \
1.1       takayama   90:           touch .copy-binary-done ; \
                     91:        fi
                     92:
1.16      takayama   93: copy-binary-asir:
1.43    ! takayama   94:        @echo "Do nothing for copy-binary-asir in the new version."
        !            95:
        !            96: copy-binary-asir-orig:
1.16      takayama   97:        if [ ! -f .copy-binary-asir-done ] ; then \
                     98:                make copy-binary-asir-from-internet ; \
                     99:        fi
1.15      takayama  100:
                    101: copy-binary-asir-from-internet:
                    102:        -mkdir OpenXM-win
                    103:        if [ ! -d work ] ; then mkdir work ; fi
                    104:        if [ ! -f work/asirwin-${ASIR_LANG}.tgz ] ; then \
                    105:                (cd work ; wget ${WGET_ARG} ) ; \
                    106:        fi
1.16      takayama  107:        (cd OpenXM-win ; tar xzvf ../work/asirwin-${ASIR_LANG}.tgz)
1.15      takayama  108:        touch .copy-binary-asir-done
                    109:
                    110: copy-binary-asir-from-local-disk:
1.2       takayama  111:        -mkdir OpenXM-win
                    112:        -mkdir OpenXM-win/asir
                    113:        if [ ! -f .copy-binary-asir-done ] ; then \
                    114:         (cd OpenXM-win ; \
                    115:          (cd ${WINASIR} ; tar czf - bin lib) | (cd asir ; tar xzvf -) ; \
                    116:         ) ; \
1.3       takayama  117:          touch .copy-binary-asir-done ; \
1.2       takayama  118:        fi
1.21      fujimoto  119:
                    120: copy-binary-phc:
1.43    ! takayama  121:        @echo "Do nothing for copy-binary-phc in the new version."
        !           122:
        !           123: copy-binary-phc-orig:
1.39      takayama  124:        -if [ ! -f .copy-binary-phc-done ] ; then \
1.21      fujimoto  125:                make copy-binary-phc-from-internet ; \
                    126:        fi
                    127:
                    128: copy-binary-phc-from-internet:
                    129:        if [ ! -f ${OpenXM_TOP}/bin/phc.exe ] ; then \
                    130:         (cd ${OpenXM_TOP}/bin ; wget ${WGET_PHC} ) ; \
                    131:        fi
                    132:        touch .copy-binary-phc-done
1.2       takayama  133:
1.15      takayama  134: copy-cygwin-dlls:
                    135:        if [ ! -f .copy-cygwin-dlls-done ] ; then \
                    136:         cp /bin/cygwin1.dll OpenXM-win/bin-windows ; \
                    137:         cp /bin/cygwin1.dll OpenXM-win/bin ; \
                    138:         cp /bin/cygwin1.dll OpenXM-win/lib/sm1/bin ; \
                    139:         touch .copy-cygwin-dlls-done ; \
                    140:        fi
                    141:
1.43    ! takayama  142: #It has not been used.
        !           143: copy-cygwin-dlls-for-ox_asir :
        !           144:        for i in ${DLLS_ox_asir} ; do \
        !           145:         cp $$i OpenXM-win/asir/bin ; \
        !           146:         cp $$i OpenXM-win/bin ; \
        !           147:         done ; \
        !           148:
1.10      takayama  149: win-correction: copy-binary oxasir-win.rr
1.7       takayama  150:        make win-correction2
1.15      takayama  151: win-correction1: build-bat copy-cygwin-dlls
1.1       takayama  152:        -mkdir OpenXM-win/bin-windows
1.7       takayama  153: #      (cd OpenXM-win/rc ; make clean ; make)
                    154: win-correction2: win-correction1
1.32      takayama  155:        cp oxasir-win.rr OpenXM-win/lib/sm1
1.33      takayama  156:        cp oxasir-win.rr $(OpenXM_TOP)/lib/sm1
1.32      takayama  157: win-correction2_old:
1.7       takayama  158:        cp OpenXM-win/lib/sm1/*.sm1 OpenXM-win/asir/bin
                    159:        cp OpenXM-win/lib/sm1/*.sm1 OpenXM-win/bin
                    160:        cp OpenXM-win/lib/sm1/*.sm1 OpenXM-win/asir/bin
                    161:        cp OpenXM-win/lib/sm1/*.sm1 OpenXM-win/bin
                    162:        cp OpenXM-win/lib/sm1/oxasir.asir OpenXM-win/asir/bin
                    163:        cp OpenXM-win/lib/sm1/oxasir.asir OpenXM-win/bin
1.16      takayama  164:        -cp OpenXM-win/bin/ox_asir OpenXM-win/bin/ox_asir.exe
1.10      takayama  165:        cp oxasir-win.rr OpenXM-win/bin
                    166:        cp oxasir-win.rr OpenXM-win/asir/bin
                    167:        cp oxasir-win.rr OpenXM-win/lib/asir
                    168:        cp oxasir-win.rr OpenXM-win/lib/sm1
1.23      takayama  169:
1.15      takayama  170:
1.7       takayama  171: win-correction-clean:
1.17      takayama  172:        -find OpenXM-win -name '*~' -print | xargs rm -f
                    173:        -rm -f OpenXM-win/lib/sm1/*.jpeg OpenXM-win/lib/sm1/*.jpg
1.7       takayama  174: build-tgz: win-correction-clean
1.6       takayama  175:        if [ ! -f .OpenXM-win.tgz.done ]; then \
                    176:        tar czvf OpenXM-win.tgz OpenXM-win ; touch .OpenXM-win.tgz.done ; \
                    177:        fi
1.5       takayama  178:
1.6       takayama  179: copy-to-orange: build-tgz
1.5       takayama  180:        scp OpenXM-win.tgz taka@orange:tmp3
1.29      takayama  181: copy-to-ftp-area: build-tgz
1.30      takayama  182:        if [ ! -f .OpenXM-win.tgz.copy.done ]; then \
1.43    ! takayama  183:          scp OpenXM-win.tgz taka@orange2:/home/www/pub/OpenXM/Head/OpenXM-win-${ASIR_LANG}.tgz ; \
1.30      takayama  184:        fi
                    185:        touch .OpenXM-win.tgz.copy.done
                    186: copy-to-ftp-area-stable: build-tgz
                    187:          scp OpenXM-win.tgz taka@orange:/export/home01/ftp/pub/OpenXM/${VERSION}/OpenXM-win-${ASIR_LANG}.tgz
1.10      takayama  188:
1.15      takayama  189: link-for-debug:
                    190:        (cd ${OpenXM_TOP} ; cd bin ; ln -s ../../OpenXM_contrib2/asir2000/asir .)
                    191:        (cd ${OpenXM_TOP} ; cd src/kxx ; make install-for-debug)
1.10      takayama  192:
                    193: oxapp : oxapp.c
                    194:
1.11      takayama  195: oxasir-win.rr : oxapp oxpp oxpp2
                    196:        rm -f oxasir-win.tmp oxasir-win.tmp2 oxasir-win.tmp3 oxpp2.tmp1 oxpp2.tmp2
                    197:        cat ${OpenXM_TOP}/src/kan96xx/Doc/oxasir.asir >>oxasir-win.tmp
                    198:        cat ${OpenXM_TOP}/rc/asirrc >>oxasir-win.tmp
                    199:        ./oxpp2 oxasir-win.tmp >oxasir-win.rr
                    200: #      rm -f oxasir-win.tmp oxasir-win.tmp2 oxasir-win.tmp3 oxpp2.tmp1 oxpp2.tmp2
1.12      takayama  201:
1.14      takayama  202: debug-tools/crlf :  debug-tools/crlf.c
                    203:        (cd debug-tools; gcc -o crlf crlf.c)
1.17      takayama  204: debug-tools/debug-sed : debug-tools/debug-sed.c
                    205:        (cd debug-tools; gcc -o debug-sed debug-sed.c)
1.35      takayama  206: debug-tools/gcwd : debug-tools/gcwd.c
                    207:        (cd debug-tools; gcc -o gcwd gcwd.c)
                    208: build-bat: debug-tools/crlf debug-tools/debug-sed debug-tools/gcwd
1.43    ! takayama  209:        -mkdir -p OpenXM-win/bin-windows
        !           210:        -mkdir -p OpenXM-win/asir
        !           211:        -mkdir -p OpenXM-win/asir/bin
        !           212:        -mkdir -p OpenXM-win/asir/lib
1.13      takayama  213:        (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)
1.37      takayama  214:        (cd debug-tools; sed -f dist.sed <sm1-cd.bat >../OpenXM-win/bin-windows/sm1-cd.bat ; ./crlf ../OpenXM-win/bin-windows/sm1-cd.bat)
1.13      takayama  215:        (cd debug-tools; sed -f dist.sed <webasir.bat >../OpenXM-win/bin-windows/webasir.bat ; ./crlf ../OpenXM-win/bin-windows/webasir.bat)
                    216:        (cd debug-tools; sed -f dist.sed <websm1.bat >../OpenXM-win/bin-windows/websm1.bat ; ./crlf ../OpenXM-win/bin-windows/websm1.bat)
                    217:        (rm -f ../OpenXM-win/bin-windows/*.BAK ../OpenXM-win/bin-windows/*.bak)
1.12      takayama  218:        cp OpenXM-win/bin-windows/asirgui-cd.bat OpenXM-win/asir/bin
1.35      takayama  219:        (cd debug-tools; cp gcwd.exe ../OpenXM-win/bin-windows)
1.17      takayama  220:
                    221: remove-experimental:
                    222:        -rm -f OpenXM-win/bin-windows/*web*.bat
                    223:
1.5       takayama  224:
1.22      takayama  225: gen-cd:
1.25      takayama  226:        -(make ASIR_LANG=${ASIR_LANG} all; make remove-experimental)
1.22      takayama  227:        -mkdir OpenXM-unix
                    228:        cp Readme-CD/readme-unix-en.html OpenXM-unix
                    229:        (cd OpenXM-unix; wget ${WGET_HEAD} )
1.24      takayama  230:        @echo "Copy OpenXM-unix and OpenXM-win to the CD."
1.26      takayama  231:
                    232: asir-book: mkdir-asir-book copy-to-asir-book
                    233: clean-asir-book:
1.31      takayama  234:        -rm -rf asir-book .copy-to-asir-book-asir-bin .copy-to-asir-book-prog .copy-to-asir-book-meadow asir-book-en.tgz asir-book-ja.tgz
1.26      takayama  235:
                    236: mkdir-asir-book:
                    237:        -(mkdir asir-book)
                    238:        -(mkdir asir-book/asir)
                    239:        -(mkdir asir-book/Meadow)
                    240:        -(mkdir asir-book/Prog)
                    241:
1.31      takayama  242: copy-to-asir-book:  copy-to-asir-book-asir-bin copy-to-asir-book-prog copy-to-asir-book-meadow asir-book/readme-ja.html
1.26      takayama  243:
                    244: copy-to-asir-book-asir-bin:  copy-binary-asir
1.28      takayama  245:        -if [ ! -f .copy-to-asir-book-asir-bin ]; then  \
                    246:          (cd asir-book ; tar xzvf ../work/asirwin-${ASIR_LANG}.tgz) ;\
1.26      takayama  247:        fi
                    248:        touch .copy-to-asir-book-asir-bin
                    249:
                    250: copy-to-asir-book-prog:
1.28      takayama  251:        if [ ! -f .copy-to-asir-book-prog ]; then \
1.26      takayama  252:          (cd work; cvs-asir-book checkout asir-book) ; \
                    253:          (cp work/asir-book/Prog/*.rr asir-book/Prog) ; \
                    254:        fi
                    255:        touch .copy-to-asir-book-prog
                    256:
1.27      takayama  257: MEADOW=Meadow-1.14-i386-base.tar.gz
1.26      takayama  258: WGET_MEADOW=--passive-ftp ftp://ftp:${USER}.openxm.org@ftp.math.kobe-u.ac.jp/pub/OpenXM/misc/1.2.2/${MEADOW}
1.27      takayama  259: WINTAR=tar.exe
                    260: WGET_WINTAR=--passive-ftp ftp://ftp:${USER}.openxm.org@ftp.math.kobe-u.ac.jp/pub/OpenXM/misc/1.2.2/${WINTAR}
                    261: WINGZIP=gzip.exe
                    262: WGET_WINGZIP=--passive-ftp ftp://ftp:${USER}.openxm.org@ftp.math.kobe-u.ac.jp/pub/OpenXM/misc/1.2.2/${WINGZIP}
1.26      takayama  263: copy-to-asir-book-meadow:
1.28      takayama  264:        if [ ! -f .copy-to-asir-book-meadow ]; then \
                    265:         if [ ! -f work/${MEADOW} ]; then \
1.26      takayama  266:                (cd work ; wget ${WGET_MEADOW} ) ; \
1.27      takayama  267:                (cd work ; wget ${WGET_WINTAR} ) ; \
                    268:                (cd work ; wget ${WGET_WINGZIP} ) ; \
1.26      takayama  269:         fi ; \
1.28      takayama  270:         (cd asir-book ; cp ../work/${MEADOW} Meadow) ; \
                    271:         (cd asir-book ; cp ../work/${WINTAR} Meadow) ; \
                    272:         (cd asir-book ; cp ../work/${WINGZIP} Meadow) ; \
1.26      takayama  273:        fi
                    274:        touch .copy-to-asir-book-meadow
                    275:
1.31      takayama  276: asir-book/readme-ja.html: Readme-CD/asir-book-index.html
                    277:        cp Readme-CD/asir-book-index.html asir-book/readme-ja.html
                    278:
                    279: copy-asir-book-to-ftp-area: asir-book-${ASIR_LANG}.tgz
                    280:        scp asir-book-${ASIR_LANG}.tgz taka@orange:/export/home01/ftp/pub/OpenXM/asir-book
                    281: asir-book-${ASIR_LANG}.tgz: asir-book
                    282:        tar czvf asir-book-${ASIR_LANG}.tgz --exclude Meadow asir-book
                    283:
                    284:

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