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

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

1.13    ! takayama    1: # $OpenXM: OpenXM/misc/packages/Makefile,v 1.12 2000/03/11 08:58:32 takayama Exp $
1.7       takayama    2:
                      3: VERSION=1.1.2
1.9       takayama    4: TAG=HEAD
                      5: ## TAG=RELEASE_1_1_2
                      6:
1.7       takayama    7: TAR_WORK=$(HOME)/tmp
                      8: NAME=taka
                      9: TAR_WORK_EXPLICIT=/home/${NAME}/tmp
                     10: JDK=jdk1.1.8
1.10      takayama   11: FTP_AREA=/export/home01/ftp/pub/OpenXM/${VERSION}
1.9       takayama   12: ## TAG for the CVS server.
1.7       takayama   13:
1.3       takayama   14: # Modify below for priting.
                     15: PS=a2ps-j
                     16: LPR=lpr -Pdousan
1.1       takayama   17:
                     18: usage :
1.3       takayama   19:        @echo "Targets "
                     20:        @echo "  clean "
                     21:        @echo "  print "
1.8       takayama   22:        @echo "Do not forget to put java and javac in your search path."
1.10      takayama   23:        @echo "Put your rcvs script by the name cvs-OpenXM under your search path."
                     24:        @echo "   (See Generic/openxm/Makefile for details) "
1.7       takayama   25:        @echo "1.  generate-tar-balls"
                     26:        @echo "  (update-plist)"
                     27:        @echo "2.  build-on-orange (do not forget to set .rpmrc. See Linux/RPM/Makefile)"
1.10      takayama   28:        @echo "3.  build-on-pear (do it as a super user)"
1.7       takayama   29:        @echo "4.  build-on-redhat (do not forget to set .rpmrc)"
                     30:        @echo "5.  build-on-unkei"
                     31:        @echo "6.  copy-to-ftp-area "
1.10      takayama   32:        cvs-OpenXM hoge
1.1       takayama   33:
                     34: clean :
1.5       takayama   35:        -(cd Generic/openxm ; make clean-work)
1.1       takayama   36:        -(cd FreeBSD ; make clean)
1.2       takayama   37:        -(cd Linux/RPM ; make clean)
1.4       takayama   38:
1.7       takayama   39: print:
1.13    ! takayama   40:        $(PS) Makefile | $(LPR)
1.7       takayama   41:        $(PS) Generic/openxm/Makefile | $(LPR)
                     42:        $(PS) Linux/RPM/Makefile | $(LPR)
                     43:        $(PS) Linux/RPM/openxm-*spec.in | $(LPR)
                     44:        $(PS) FreeBSD/openxm-ports/openxm-1.1.2/Makefile | $(LPR)
1.9       takayama   45:        $(PS) FreeBSD/Makefile | $(LPR)
1.7       takayama   46:
                     47:
1.4       takayama   48: generate-tar-balls:
1.7       takayama   49:        -mkdir ${TAR_WORK}
1.4       takayama   50:        make clean
1.9       takayama   51:        (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} tar-ball)
1.13    ! takayama   52:        (cd Generic/openxm ; make  TAG=${TAG} VERSION=${VERSION} tar-ball-01)
1.7       takayama   53:        make update-plist
1.9       takayama   54:        (cd FreeBSD   ; make TAG=${TAG} VERSION=${VERSION} make-tar-ball-for-openxm-port)
1.4       takayama   55:        (cd Linux/RPM ; make make-directory)
                     56:        (cd Linux/RPM ; make link-for-real-openxm)
1.2       takayama   57:
1.7       takayama   58: update-plist:
1.11      takayama   59:        (cd FreeBSD ; make VERSION=${VERSION}  TAG=${TAG} update-plist )
1.6       takayama   60:
1.7       takayama   61: build-on-orange:
1.9       takayama   62:        (cd Generic/openxm ; make  TAG=${TAG} VERSION=${VERSION} binary-tar-ball)
                     63:        (cd Generic/openxm ; make  TAG=${TAG} VERSION=${VERSION} shared-tar-ball)
                     64:        (cd Generic/openxm ; make  TAG=${TAG} VERSION=${VERSION} clean-work)
                     65:        (cd Linux/RPM ; make  TAG=${TAG} VERSION=${VERSION} build-shared-rpm)
1.7       takayama   66:        (cp Linux/RPM/work/RPMS/i386/*.rpm ${TAR_WORK})
                     67:
                     68: # You should be a super user.
                     69: build-on-pear:
                     70:        cp ${TAR_WORK_EXPLICIT}/openxm-${VERSION}.tar.gz /usr/ports/distfiles
1.12      takayama   71:        (cd /usr/ports/math ; /bin/rm -rf openxm ; tar xzvf ${TAR_WORK_EXPLICIT}/openxm-port.tar.gz)
                     72:        (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   73:
                     74: build-on-redhat:
1.9       takayama   75:        (cd Generic/openxm ; make  TAG=${TAG} VERSION=${VERSION} binary-tar-ball)
1.7       takayama   76:        (cd Linux/RPM ; make build-binary-rpm)
                     77:        (cp Linux/RPM/work/RPMS/i386/*.rpm ${TAR_WORK})
                     78:
                     79: build-on-unkei:
1.9       takayama   80:        (cd Generic/openxm ; make  TAG=${TAG} VERSION=${VERSION} binary-tar-ball)
1.7       takayama   81:
                     82: copy-to-ftp-area:
                     83:        -mkdir ${FTP_AREA}
                     84:        cp ${TAR_WORK}/openxm*rpm ${FTP_AREA}
                     85:        cp ${TAR_WORK}/openxm01-${VERSION}.tar.gz ${FTP_AREA}
                     86:        cp ${TAR_WORK}/OpenXM-*.tgz ${FTP_AREA}
                     87:        cp ${TAR_WORK}/openxm-${VERSION}.tgz ${FTP_AREA}
                     88:        ls -l ${FTP_AREA}

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