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

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

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

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