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

Annotation of OpenXM/misc/packages/Makefile, Revision 1.34

1.34    ! takayama    1: # $OpenXM: OpenXM/misc/packages/Makefile,v 1.33 2010/02/07 05:35:49 takayama Exp $
1.7       takayama    2:
1.33      takayama    3: VERSION=1.3.1
1.9       takayama    4: TAG=HEAD
1.33      takayama    5: ## TAG=RELEASE_1_3_1
1.9       takayama    6:
1.26      takayama    7: ### Configure below.
1.7       takayama    8: TAR_WORK=$(HOME)/tmp
                      9: NAME=taka
1.26      takayama   10: WHO=taka@orange
1.25      takayama   11: # It must be equal to TAR_WORK. To work as a super user. Used in build-on-pear-root.
1.7       takayama   12: TAR_WORK_EXPLICIT=/home/${NAME}/tmp
                     13: JDK=jdk1.1.8
1.34    ! takayama   14: FTP_AREA=/home/web/pub/OpenXM/${VERSION}
        !            15: FTP_AREA_HEAD=/home/web/pub/OpenXM/Head
        !            16: FTP_AREA_ASIR=/home/web/pub/asir
1.32      takayama   17: RCVS=cvs-OpenXM -d kerberos.math.sci.kobe-u.ac.jp:/usr/cvs
1.9       takayama   18: ## TAG for the CVS server.
1.7       takayama   19:
1.3       takayama   20: # Modify below for priting.
                     21: PS=a2ps-j
                     22: LPR=lpr -Pdousan
1.1       takayama   23:
                     24: usage :
1.3       takayama   25:        @echo "Targets "
                     26:        @echo "  clean "
                     27:        @echo "  print "
1.8       takayama   28:        @echo "Do not forget to put java and javac in your search path."
1.10      takayama   29:        @echo "Put your rcvs script by the name cvs-OpenXM under your search path."
1.23      takayama   30:        @echo "OpenXM must be under the home directory. Otherwise, input like make OpenXM_HOME=/hoge/hoge/OpenXM ..."
1.10      takayama   31:        @echo "   (See Generic/openxm/Makefile for details) "
1.7       takayama   32:        @echo "1.  generate-tar-balls"
                     33:        @echo "  (update-plist)"
1.23      takayama   34:        @echo "  (or  generate-tar-balls-without-update-plist) "
1.25      takayama   35:        @echo "2.  build-on-new-orange (do not forget to set .rpmrc. See Linux/RPM/Makefile)"
                     36:        @echo "3.  build-on-pear-root (do it as a super user)"
1.7       takayama   37:        @echo "4.  build-on-redhat (do not forget to set .rpmrc)"
                     38:        @echo "5.  build-on-unkei"
                     39:        @echo "6.  copy-to-ftp-area "
1.33      takayama   40:        @echo "[[7]].  copy-head-tar-ball-to-ftp-area "
1.30      takayama   41:        @echo "7.b  copy-release-tar-ball-to-ftp-area "
1.28      takayama   42:        @echo "8.  copy-asir-head-tar-ball-to-ftp-area "
                     43:        @echo "9.  copy-asir-stable-tar-ball-to-ftp-area "
1.29      takayama   44:        @echo "10.  copy-asir-misc-tar-ball-to-ftp-area "
1.1       takayama   45:
                     46: clean :
1.5       takayama   47:        -(cd Generic/openxm ; make clean-work)
1.1       takayama   48:        -(cd FreeBSD ; make clean)
1.2       takayama   49:        -(cd Linux/RPM ; make clean)
1.26      takayama   50:        /bin/rm -rf work
1.4       takayama   51:
1.7       takayama   52: print:
1.13      takayama   53:        $(PS) Makefile | $(LPR)
1.15      takayama   54:        $(PS) README | $(LPR)
1.7       takayama   55:        $(PS) Generic/openxm/Makefile | $(LPR)
                     56:        $(PS) Linux/RPM/Makefile | $(LPR)
                     57:        $(PS) Linux/RPM/openxm-*spec.in | $(LPR)
                     58:        $(PS) FreeBSD/openxm-ports/openxm-1.1.2/Makefile | $(LPR)
1.9       takayama   59:        $(PS) FreeBSD/Makefile | $(LPR)
1.7       takayama   60:
1.19      takayama   61: clean-Generic-openxm-work:
                     62:        -(cd Generic/openxm ; make clean-work ; make fetch)
1.7       takayama   63:
1.4       takayama   64: generate-tar-balls:
1.7       takayama   65:        -mkdir ${TAR_WORK}
1.4       takayama   66:        make clean
1.9       takayama   67:        (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} tar-ball)
1.13      takayama   68:        (cd Generic/openxm ; make  TAG=${TAG} VERSION=${VERSION} tar-ball-01)
1.7       takayama   69:        make update-plist
1.9       takayama   70:        (cd FreeBSD   ; make TAG=${TAG} VERSION=${VERSION} make-tar-ball-for-openxm-port)
1.2       takayama   71:
1.7       takayama   72: update-plist:
1.11      takayama   73:        (cd FreeBSD ; make VERSION=${VERSION}  TAG=${TAG} update-plist )
1.23      takayama   74:
                     75: generate-tar-balls-without-update-plist:
                     76:        -mkdir ${TAR_WORK}
                     77:        make clean
                     78:        (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} tar-ball)
                     79:        (cd Generic/openxm ; make  TAG=${TAG} VERSION=${VERSION} tar-ball-01)
                     80:        (cd FreeBSD   ; make TAG=${TAG} VERSION=${VERSION} make-tar-ball-for-openxm-port)
1.6       takayama   81:
1.17      takayama   82: prepare-build-rpm:
                     83:        (cd Linux/RPM ; make make-directory)
                     84:        (cd Linux/RPM ; make link-for-real-openxm)
                     85:
1.15      takayama   86: # set path=(/usr/local/jdk1.1.8/bin $path) ; rehash
1.25      takayama   87: # build-on-new-orange should depend on clean-Generic-openxm-work in a future.
                     88: build-on-new-orange: prepare-build-rpm
1.9       takayama   89:        (cd Generic/openxm ; make  TAG=${TAG} VERSION=${VERSION} binary-tar-ball)
                     90:        (cd Generic/openxm ; make  TAG=${TAG} VERSION=${VERSION} shared-tar-ball)
                     91:        (cd Generic/openxm ; make  TAG=${TAG} VERSION=${VERSION} clean-work)
                     92:        (cd Linux/RPM ; make  TAG=${TAG} VERSION=${VERSION} build-shared-rpm)
1.22      takayama   93:        -(cp Linux/RPM/work/RPMS/i386/*.rpm ${TAR_WORK})
                     94:        -(cp Linux/RPM/work/RPMS/noarch/*.rpm ${TAR_WORK})
1.7       takayama   95:
                     96: # You should be a super user.
1.25      takayama   97: build-on-pear-root:
1.7       takayama   98:        cp ${TAR_WORK_EXPLICIT}/openxm-${VERSION}.tar.gz /usr/ports/distfiles
1.12      takayama   99:        (cd /usr/ports/math ; /bin/rm -rf openxm ; tar xzvf ${TAR_WORK_EXPLICIT}/openxm-port.tar.gz)
                    100:        (PATH=/usr/local/${JDK}/bin:$(PATH) ; export PATH ; cd /usr/ports/math/openxm ; make install ; make package ; make deinstall ; cp openxm-${VERSION}.tgz ${TAR_WORK_EXPLICIT} ; chown ${NAME} ${TAR_WORK_EXPLICIT}/openxm-${VERSION}.tgz)
1.7       takayama  101:
1.19      takayama  102: build-on-redhat: prepare-build-rpm clean-Generic-openxm-work
1.20      takayama  103:        (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} TAR_WORK=${TAR_WORK} tar-ball)
1.9       takayama  104:        (cd Generic/openxm ; make  TAG=${TAG} VERSION=${VERSION} binary-tar-ball)
1.7       takayama  105:        (cd Linux/RPM ; make build-binary-rpm)
                    106:        (cp Linux/RPM/work/RPMS/i386/*.rpm ${TAR_WORK})
                    107:
1.15      takayama  108: # set path=(/usr/ccs/bin /usr/local/bin $path); rehash
1.18      takayama  109: # setenv OpenXM_HOME  xxx-yyy
                    110: # (Note for taka). On unkei, cd Solaris/OpenXM/misc/packages,
                    111: #                  setenv OpenXM_HOME $HOME/Solaris/OpenXM
                    112: #                  and make OpenXM_HOME=$OpenXM_HOME build-on-unkei
1.19      takayama  113: build-on-unkei: clean-Generic-openxm-work
1.18      takayama  114:        (cd Generic/openxm ; make  TAG=${TAG} VERSION=${VERSION} OpenXM_HOME=${OpenXM_HOME} binary-tar-ball)
1.7       takayama  115:
                    116: copy-to-ftp-area:
                    117:        -mkdir ${FTP_AREA}
1.25      takayama  118:        -cp ${TAR_WORK}/openxm*rpm ${FTP_AREA}
                    119:        -cp ${TAR_WORK}/openxm-${VERSION}.tar.gz ${FTP_AREA}
                    120:        -cp ${TAR_WORK}/OpenXM-*.tgz ${FTP_AREA}
                    121:        -cp ${TAR_WORK}/openxm-${VERSION}.tgz ${FTP_AREA}
                    122:        -cp ${TAR_WORK}/openxm-port.tar.gz ${FTP_AREA}
1.7       takayama  123:        ls -l ${FTP_AREA}
1.30      takayama  124:
                    125: copy-release-tar-ball-to-ftp-area:
                    126:        -mkdir ${TAR_WORK}
                    127:        -mkdir work
                    128:        (cd work ; /bin/rm -rf *)
                    129:        (cd work ; ${RCVS} checkout OpenXM OpenXM_contrib OpenXM_contrib2)
                    130:        (cd work ; tar czvf ${TAR_WORK}/openxm-${VERSION}.tar.gz OpenXM OpenXM_contrib OpenXM_contrib2)
                    131:        /bin/rm -rf work
                    132:        -scp ${TAR_WORK}/openxm-${VERSION}.tar.gz ${WHO}:${FTP_AREA}
1.26      takayama  133:
                    134: copy-head-tar-ball-to-ftp-area:
                    135:        -mkdir ${TAR_WORK}
                    136:        -mkdir work
                    137:        (cd work ; /bin/rm -rf *)
1.27      takayama  138:        (cd work ; ${RCVS} checkout OpenXM OpenXM_contrib OpenXM_contrib2)
1.26      takayama  139:        (cd work ; tar czvf ${TAR_WORK}/openxm-head.tar.gz OpenXM OpenXM_contrib OpenXM_contrib2)
                    140:        /bin/rm -rf work
1.31      takayama  141:        cp ${TAR_WORK}/openxm-head.tar.gz ${FTP_AREA_HEAD}
1.28      takayama  142:
                    143: copy-asir-head-tar-ball-to-ftp-area:
                    144:        -mkdir ${TAR_WORK}
                    145:        -mkdir work
                    146:        (cd work ; /bin/rm -rf *)
                    147:        (cd work ; ${RCVS} export -rHEAD OpenXM_contrib/pari OpenXM_contrib2/asir2000)
                    148:        (cd work/OpenXM_contrib ; tar czvf ${TAR_WORK}/pari.tar.gz pari)
                    149:        (cd work/OpenXM_contrib2 ; tar czvf ${TAR_WORK}/asir-head.tar.gz asir2000)
                    150:        /bin/rm -rf work
                    151:        -scp ${TAR_WORK}/pari.tar.gz ${WHO}:${FTP_AREA_ASIR}
                    152:        -scp ${TAR_WORK}/asir-head.tar.gz ${WHO}:${FTP_AREA_ASIR}
                    153:
                    154: copy-asir-stable-tar-ball-to-ftp-area:
                    155:        -mkdir ${TAR_WORK}
                    156:        -mkdir work
                    157:        (cd work ; /bin/rm -rf *)
                    158:        (cd work ; ${RCVS} export -rSTABLE_1_1_3 OpenXM_contrib2/asir2000)
                    159:        (cd work/OpenXM_contrib2 ; tar czvf ${TAR_WORK}/asir-stable.tar.gz asir2000)
                    160:        /bin/rm -rf work
                    161:        -scp ${TAR_WORK}/asir-stable.tar.gz ${WHO}:${FTP_AREA_ASIR}
1.29      takayama  162:
                    163: copy-asir-misc-tar-ball-to-ftp-area:
                    164:        -mkdir ${TAR_WORK}
                    165:        -mkdir work
                    166:        (cd work ; /bin/rm -rf *)
                    167:        (cd work ; ${RCVS} export -rHEAD OpenXM_contrib2/windows)
                    168:        (cd work/OpenXM_contrib2 ; tar czvf ${TAR_WORK}/asir-head-windows.tar.gz windows)
                    169:        (cd work ; ${RCVS} export -rHEAD OpenXM/src/asir-doc)
                    170:        (cd work/OpenXM/src ; tar czvf ${TAR_WORK}/asir-doc.tar.gz asir-doc)
                    171:        /bin/rm -rf work
                    172:        -scp ${TAR_WORK}/asir-head-windows.tar.gz ${WHO}:${FTP_AREA_ASIR}
                    173:        -scp ${TAR_WORK}/asir-doc.tar.gz ${WHO}:${FTP_AREA_ASIR}

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