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