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

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

1.29    ! takayama    1: # $OpenXM: OpenXM/misc/packages/Makefile,v 1.28 2001/03/23 12:16:15 takayama Exp $
1.7       takayama    2:
1.24      takayama    3: VERSION=1.1.3
1.9       takayama    4: TAG=HEAD
1.24      takayama    5: ## TAG=RELEASE_1_1_3
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.10      takayama   14: FTP_AREA=/export/home01/ftp/pub/OpenXM/${VERSION}
1.26      takayama   15: FTP_AREA_HEAD=/export/home01/ftp/pub/OpenXM/Head
1.28      takayama   16: FTP_AREA_ASIR=/export/home01/ftp/pub/asir
1.27      takayama   17: RCVS=cvs-OpenXM -d kerberos.math.sci.kobe-u.ac.jp:/home/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.26      takayama   40:        @echo "7.  copy-head-tar-ball-to-ftp-area "
1.28      takayama   41:        @echo "8.  copy-asir-head-tar-ball-to-ftp-area "
                     42:        @echo "9.  copy-asir-stable-tar-ball-to-ftp-area "
1.29    ! takayama   43:        @echo "10.  copy-asir-misc-tar-ball-to-ftp-area "
1.1       takayama   44:
                     45: clean :
1.5       takayama   46:        -(cd Generic/openxm ; make clean-work)
1.1       takayama   47:        -(cd FreeBSD ; make clean)
1.2       takayama   48:        -(cd Linux/RPM ; make clean)
1.26      takayama   49:        /bin/rm -rf work
1.4       takayama   50:
1.7       takayama   51: print:
1.13      takayama   52:        $(PS) Makefile | $(LPR)
1.15      takayama   53:        $(PS) README | $(LPR)
1.7       takayama   54:        $(PS) Generic/openxm/Makefile | $(LPR)
                     55:        $(PS) Linux/RPM/Makefile | $(LPR)
                     56:        $(PS) Linux/RPM/openxm-*spec.in | $(LPR)
                     57:        $(PS) FreeBSD/openxm-ports/openxm-1.1.2/Makefile | $(LPR)
1.9       takayama   58:        $(PS) FreeBSD/Makefile | $(LPR)
1.7       takayama   59:
1.19      takayama   60: clean-Generic-openxm-work:
                     61:        -(cd Generic/openxm ; make clean-work ; make fetch)
1.7       takayama   62:
1.4       takayama   63: generate-tar-balls:
1.7       takayama   64:        -mkdir ${TAR_WORK}
1.4       takayama   65:        make clean
1.9       takayama   66:        (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} tar-ball)
1.13      takayama   67:        (cd Generic/openxm ; make  TAG=${TAG} VERSION=${VERSION} tar-ball-01)
1.7       takayama   68:        make update-plist
1.9       takayama   69:        (cd FreeBSD   ; make TAG=${TAG} VERSION=${VERSION} make-tar-ball-for-openxm-port)
1.2       takayama   70:
1.7       takayama   71: update-plist:
1.11      takayama   72:        (cd FreeBSD ; make VERSION=${VERSION}  TAG=${TAG} update-plist )
1.23      takayama   73:
                     74: generate-tar-balls-without-update-plist:
                     75:        -mkdir ${TAR_WORK}
                     76:        make clean
                     77:        (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} tar-ball)
                     78:        (cd Generic/openxm ; make  TAG=${TAG} VERSION=${VERSION} tar-ball-01)
                     79:        (cd FreeBSD   ; make TAG=${TAG} VERSION=${VERSION} make-tar-ball-for-openxm-port)
1.6       takayama   80:
1.17      takayama   81: prepare-build-rpm:
                     82:        (cd Linux/RPM ; make make-directory)
                     83:        (cd Linux/RPM ; make link-for-real-openxm)
                     84:
1.15      takayama   85: # set path=(/usr/local/jdk1.1.8/bin $path) ; rehash
1.25      takayama   86: # build-on-new-orange should depend on clean-Generic-openxm-work in a future.
                     87: build-on-new-orange: prepare-build-rpm
1.9       takayama   88:        (cd Generic/openxm ; make  TAG=${TAG} VERSION=${VERSION} binary-tar-ball)
                     89:        (cd Generic/openxm ; make  TAG=${TAG} VERSION=${VERSION} shared-tar-ball)
                     90:        (cd Generic/openxm ; make  TAG=${TAG} VERSION=${VERSION} clean-work)
                     91:        (cd Linux/RPM ; make  TAG=${TAG} VERSION=${VERSION} build-shared-rpm)
1.22      takayama   92:        -(cp Linux/RPM/work/RPMS/i386/*.rpm ${TAR_WORK})
                     93:        -(cp Linux/RPM/work/RPMS/noarch/*.rpm ${TAR_WORK})
1.7       takayama   94:
                     95: # You should be a super user.
1.25      takayama   96: build-on-pear-root:
1.7       takayama   97:        cp ${TAR_WORK_EXPLICIT}/openxm-${VERSION}.tar.gz /usr/ports/distfiles
1.12      takayama   98:        (cd /usr/ports/math ; /bin/rm -rf openxm ; tar xzvf ${TAR_WORK_EXPLICIT}/openxm-port.tar.gz)
                     99:        (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  100:
1.19      takayama  101: build-on-redhat: prepare-build-rpm clean-Generic-openxm-work
1.20      takayama  102:        (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} TAR_WORK=${TAR_WORK} tar-ball)
1.9       takayama  103:        (cd Generic/openxm ; make  TAG=${TAG} VERSION=${VERSION} binary-tar-ball)
1.7       takayama  104:        (cd Linux/RPM ; make build-binary-rpm)
                    105:        (cp Linux/RPM/work/RPMS/i386/*.rpm ${TAR_WORK})
                    106:
1.15      takayama  107: # set path=(/usr/ccs/bin /usr/local/bin $path); rehash
1.18      takayama  108: # setenv OpenXM_HOME  xxx-yyy
                    109: # (Note for taka). On unkei, cd Solaris/OpenXM/misc/packages,
                    110: #                  setenv OpenXM_HOME $HOME/Solaris/OpenXM
                    111: #                  and make OpenXM_HOME=$OpenXM_HOME build-on-unkei
1.19      takayama  112: build-on-unkei: clean-Generic-openxm-work
1.18      takayama  113:        (cd Generic/openxm ; make  TAG=${TAG} VERSION=${VERSION} OpenXM_HOME=${OpenXM_HOME} binary-tar-ball)
1.7       takayama  114:
                    115: copy-to-ftp-area:
                    116:        -mkdir ${FTP_AREA}
1.25      takayama  117:        -cp ${TAR_WORK}/openxm*rpm ${FTP_AREA}
                    118:        -cp ${TAR_WORK}/openxm-${VERSION}.tar.gz ${FTP_AREA}
                    119:        -cp ${TAR_WORK}/OpenXM-*.tgz ${FTP_AREA}
                    120:        -cp ${TAR_WORK}/openxm-${VERSION}.tgz ${FTP_AREA}
                    121:        -cp ${TAR_WORK}/openxm-port.tar.gz ${FTP_AREA}
1.7       takayama  122:        ls -l ${FTP_AREA}
1.26      takayama  123:
                    124: copy-head-tar-ball-to-ftp-area:
                    125:        -mkdir ${TAR_WORK}
                    126:        -mkdir work
                    127:        (cd work ; /bin/rm -rf *)
1.27      takayama  128:        (cd work ; ${RCVS} checkout OpenXM OpenXM_contrib OpenXM_contrib2)
1.26      takayama  129:        (cd work ; tar czvf ${TAR_WORK}/openxm-head.tar.gz OpenXM OpenXM_contrib OpenXM_contrib2)
                    130:        /bin/rm -rf work
                    131:        -scp ${TAR_WORK}/openxm-head.tar.gz ${WHO}:${FTP_AREA_HEAD}
1.28      takayama  132:
                    133: copy-asir-head-tar-ball-to-ftp-area:
                    134:        -mkdir ${TAR_WORK}
                    135:        -mkdir work
                    136:        (cd work ; /bin/rm -rf *)
                    137:        (cd work ; ${RCVS} export -rHEAD OpenXM_contrib/pari OpenXM_contrib2/asir2000)
                    138:        (cd work/OpenXM_contrib ; tar czvf ${TAR_WORK}/pari.tar.gz pari)
                    139:        (cd work/OpenXM_contrib2 ; tar czvf ${TAR_WORK}/asir-head.tar.gz asir2000)
                    140:        /bin/rm -rf work
                    141:        -scp ${TAR_WORK}/pari.tar.gz ${WHO}:${FTP_AREA_ASIR}
                    142:        -scp ${TAR_WORK}/asir-head.tar.gz ${WHO}:${FTP_AREA_ASIR}
                    143:
                    144: copy-asir-stable-tar-ball-to-ftp-area:
                    145:        -mkdir ${TAR_WORK}
                    146:        -mkdir work
                    147:        (cd work ; /bin/rm -rf *)
                    148:        (cd work ; ${RCVS} export -rSTABLE_1_1_3 OpenXM_contrib2/asir2000)
                    149:        (cd work/OpenXM_contrib2 ; tar czvf ${TAR_WORK}/asir-stable.tar.gz asir2000)
                    150:        /bin/rm -rf work
                    151:        -scp ${TAR_WORK}/asir-stable.tar.gz ${WHO}:${FTP_AREA_ASIR}
1.29    ! takayama  152:
        !           153: copy-asir-misc-tar-ball-to-ftp-area:
        !           154:        -mkdir ${TAR_WORK}
        !           155:        -mkdir work
        !           156:        (cd work ; /bin/rm -rf *)
        !           157:        (cd work ; ${RCVS} export -rHEAD OpenXM_contrib2/windows)
        !           158:        (cd work/OpenXM_contrib2 ; tar czvf ${TAR_WORK}/asir-head-windows.tar.gz windows)
        !           159:        (cd work ; ${RCVS} export -rHEAD OpenXM/src/asir-doc)
        !           160:        (cd work/OpenXM/src ; tar czvf ${TAR_WORK}/asir-doc.tar.gz asir-doc)
        !           161:        /bin/rm -rf work
        !           162:        -scp ${TAR_WORK}/asir-head-windows.tar.gz ${WHO}:${FTP_AREA_ASIR}
        !           163:        -scp ${TAR_WORK}/asir-doc.tar.gz ${WHO}:${FTP_AREA_ASIR}

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