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

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

1.26    ! takayama    1: # $OpenXM: OpenXM/misc/packages/Makefile,v 1.25 2000/09/25 07:12:43 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.9       takayama   16: ## TAG for the CVS server.
1.7       takayama   17:
1.3       takayama   18: # Modify below for priting.
                     19: PS=a2ps-j
                     20: LPR=lpr -Pdousan
1.1       takayama   21:
                     22: usage :
1.3       takayama   23:        @echo "Targets "
                     24:        @echo "  clean "
                     25:        @echo "  print "
1.8       takayama   26:        @echo "Do not forget to put java and javac in your search path."
1.10      takayama   27:        @echo "Put your rcvs script by the name cvs-OpenXM under your search path."
1.23      takayama   28:        @echo "OpenXM must be under the home directory. Otherwise, input like make OpenXM_HOME=/hoge/hoge/OpenXM ..."
1.10      takayama   29:        @echo "   (See Generic/openxm/Makefile for details) "
1.7       takayama   30:        @echo "1.  generate-tar-balls"
                     31:        @echo "  (update-plist)"
1.23      takayama   32:        @echo "  (or  generate-tar-balls-without-update-plist) "
1.25      takayama   33:        @echo "2.  build-on-new-orange (do not forget to set .rpmrc. See Linux/RPM/Makefile)"
                     34:        @echo "3.  build-on-pear-root (do it as a super user)"
1.7       takayama   35:        @echo "4.  build-on-redhat (do not forget to set .rpmrc)"
                     36:        @echo "5.  build-on-unkei"
                     37:        @echo "6.  copy-to-ftp-area "
1.26    ! takayama   38:        @echo "7.  copy-head-tar-ball-to-ftp-area "
1.1       takayama   39:
                     40: clean :
1.5       takayama   41:        -(cd Generic/openxm ; make clean-work)
1.1       takayama   42:        -(cd FreeBSD ; make clean)
1.2       takayama   43:        -(cd Linux/RPM ; make clean)
1.26    ! takayama   44:        /bin/rm -rf work
1.4       takayama   45:
1.7       takayama   46: print:
1.13      takayama   47:        $(PS) Makefile | $(LPR)
1.15      takayama   48:        $(PS) README | $(LPR)
1.7       takayama   49:        $(PS) Generic/openxm/Makefile | $(LPR)
                     50:        $(PS) Linux/RPM/Makefile | $(LPR)
                     51:        $(PS) Linux/RPM/openxm-*spec.in | $(LPR)
                     52:        $(PS) FreeBSD/openxm-ports/openxm-1.1.2/Makefile | $(LPR)
1.9       takayama   53:        $(PS) FreeBSD/Makefile | $(LPR)
1.7       takayama   54:
1.19      takayama   55: clean-Generic-openxm-work:
                     56:        -(cd Generic/openxm ; make clean-work ; make fetch)
1.7       takayama   57:
1.4       takayama   58: generate-tar-balls:
1.7       takayama   59:        -mkdir ${TAR_WORK}
1.4       takayama   60:        make clean
1.9       takayama   61:        (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} tar-ball)
1.13      takayama   62:        (cd Generic/openxm ; make  TAG=${TAG} VERSION=${VERSION} tar-ball-01)
1.7       takayama   63:        make update-plist
1.9       takayama   64:        (cd FreeBSD   ; make TAG=${TAG} VERSION=${VERSION} make-tar-ball-for-openxm-port)
1.2       takayama   65:
1.7       takayama   66: update-plist:
1.11      takayama   67:        (cd FreeBSD ; make VERSION=${VERSION}  TAG=${TAG} update-plist )
1.23      takayama   68:
                     69: generate-tar-balls-without-update-plist:
                     70:        -mkdir ${TAR_WORK}
                     71:        make clean
                     72:        (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} tar-ball)
                     73:        (cd Generic/openxm ; make  TAG=${TAG} VERSION=${VERSION} tar-ball-01)
                     74:        (cd FreeBSD   ; make TAG=${TAG} VERSION=${VERSION} make-tar-ball-for-openxm-port)
1.6       takayama   75:
1.17      takayama   76: prepare-build-rpm:
                     77:        (cd Linux/RPM ; make make-directory)
                     78:        (cd Linux/RPM ; make link-for-real-openxm)
                     79:
1.15      takayama   80: # set path=(/usr/local/jdk1.1.8/bin $path) ; rehash
1.25      takayama   81: # build-on-new-orange should depend on clean-Generic-openxm-work in a future.
                     82: build-on-new-orange: prepare-build-rpm
1.9       takayama   83:        (cd Generic/openxm ; make  TAG=${TAG} VERSION=${VERSION} binary-tar-ball)
                     84:        (cd Generic/openxm ; make  TAG=${TAG} VERSION=${VERSION} shared-tar-ball)
                     85:        (cd Generic/openxm ; make  TAG=${TAG} VERSION=${VERSION} clean-work)
                     86:        (cd Linux/RPM ; make  TAG=${TAG} VERSION=${VERSION} build-shared-rpm)
1.22      takayama   87:        -(cp Linux/RPM/work/RPMS/i386/*.rpm ${TAR_WORK})
                     88:        -(cp Linux/RPM/work/RPMS/noarch/*.rpm ${TAR_WORK})
1.7       takayama   89:
                     90: # You should be a super user.
1.25      takayama   91: build-on-pear-root:
1.7       takayama   92:        cp ${TAR_WORK_EXPLICIT}/openxm-${VERSION}.tar.gz /usr/ports/distfiles
1.12      takayama   93:        (cd /usr/ports/math ; /bin/rm -rf openxm ; tar xzvf ${TAR_WORK_EXPLICIT}/openxm-port.tar.gz)
                     94:        (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   95:
1.19      takayama   96: build-on-redhat: prepare-build-rpm clean-Generic-openxm-work
1.20      takayama   97:        (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} TAR_WORK=${TAR_WORK} tar-ball)
1.9       takayama   98:        (cd Generic/openxm ; make  TAG=${TAG} VERSION=${VERSION} binary-tar-ball)
1.7       takayama   99:        (cd Linux/RPM ; make build-binary-rpm)
                    100:        (cp Linux/RPM/work/RPMS/i386/*.rpm ${TAR_WORK})
                    101:
1.15      takayama  102: # set path=(/usr/ccs/bin /usr/local/bin $path); rehash
1.18      takayama  103: # setenv OpenXM_HOME  xxx-yyy
                    104: # (Note for taka). On unkei, cd Solaris/OpenXM/misc/packages,
                    105: #                  setenv OpenXM_HOME $HOME/Solaris/OpenXM
                    106: #                  and make OpenXM_HOME=$OpenXM_HOME build-on-unkei
1.19      takayama  107: build-on-unkei: clean-Generic-openxm-work
1.18      takayama  108:        (cd Generic/openxm ; make  TAG=${TAG} VERSION=${VERSION} OpenXM_HOME=${OpenXM_HOME} binary-tar-ball)
1.7       takayama  109:
                    110: copy-to-ftp-area:
                    111:        -mkdir ${FTP_AREA}
1.25      takayama  112:        -cp ${TAR_WORK}/openxm*rpm ${FTP_AREA}
                    113:        -cp ${TAR_WORK}/openxm-${VERSION}.tar.gz ${FTP_AREA}
                    114:        -cp ${TAR_WORK}/OpenXM-*.tgz ${FTP_AREA}
                    115:        -cp ${TAR_WORK}/openxm-${VERSION}.tgz ${FTP_AREA}
                    116:        -cp ${TAR_WORK}/openxm-port.tar.gz ${FTP_AREA}
1.7       takayama  117:        ls -l ${FTP_AREA}
1.26    ! takayama  118:
        !           119: copy-head-tar-ball-to-ftp-area:
        !           120:        -mkdir ${TAR_WORK}
        !           121:        -mkdir work
        !           122:        (cd work ; /bin/rm -rf *)
        !           123:        (cd work ; rcvs checkout OpenXM OpenXM_contrib OpenXM_contrib2)
        !           124:        (cd work ; tar czvf ${TAR_WORK}/openxm-head.tar.gz OpenXM OpenXM_contrib OpenXM_contrib2)
        !           125:        /bin/rm -rf work
        !           126:        -scp ${TAR_WORK}/openxm-head.tar.gz ${WHO}:${FTP_AREA_HEAD}

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