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