Annotation of OpenXM/misc/packages/Makefile, Revision 1.17
1.17 ! takayama 1: # $OpenXM: OpenXM/misc/packages/Makefile,v 1.16 2000/03/13 00:57:44 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
1.15 takayama 9: # It must be equal to TAR_WORK. To work as a super user. Used in build-on-pear.
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."
25: @echo " (See Generic/openxm/Makefile for details) "
1.7 takayama 26: @echo "1. generate-tar-balls"
27: @echo " (update-plist)"
28: @echo "2. build-on-orange (do not forget to set .rpmrc. See Linux/RPM/Makefile)"
1.10 takayama 29: @echo "3. build-on-pear (do it as a super user)"
1.7 takayama 30: @echo "4. build-on-redhat (do not forget to set .rpmrc)"
31: @echo "5. build-on-unkei"
32: @echo "6. copy-to-ftp-area "
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.15 takayama 41: $(PS) README | $(LPR)
1.7 takayama 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.7 takayama 47:
48:
1.4 takayama 49: generate-tar-balls:
1.7 takayama 50: -mkdir ${TAR_WORK}
1.4 takayama 51: make clean
1.9 takayama 52: (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} tar-ball)
1.13 takayama 53: (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} tar-ball-01)
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.2 takayama 56:
1.7 takayama 57: update-plist:
1.11 takayama 58: (cd FreeBSD ; make VERSION=${VERSION} TAG=${TAG} update-plist )
1.6 takayama 59:
1.17 ! takayama 60: prepare-build-rpm:
! 61: (cd Linux/RPM ; make make-directory)
! 62: (cd Linux/RPM ; make link-for-real-openxm)
! 63:
1.15 takayama 64: # set path=(/usr/local/jdk1.1.8/bin $path) ; rehash
1.17 ! takayama 65: build-on-orange: prepare-build-rpm
1.9 takayama 66: (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} binary-tar-ball)
67: (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} shared-tar-ball)
68: (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} clean-work)
69: (cd Linux/RPM ; make TAG=${TAG} VERSION=${VERSION} build-shared-rpm)
1.7 takayama 70: (cp Linux/RPM/work/RPMS/i386/*.rpm ${TAR_WORK})
71:
72: # You should be a super user.
73: build-on-pear:
74: cp ${TAR_WORK_EXPLICIT}/openxm-${VERSION}.tar.gz /usr/ports/distfiles
1.12 takayama 75: (cd /usr/ports/math ; /bin/rm -rf openxm ; tar xzvf ${TAR_WORK_EXPLICIT}/openxm-port.tar.gz)
76: (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 77:
1.17 ! takayama 78: build-on-redhat: prepare-build-rpm
! 79: (cd Generic/openxm ; make clean-work ; make fetch)
1.9 takayama 80: (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} binary-tar-ball)
1.7 takayama 81: (cd Linux/RPM ; make build-binary-rpm)
82: (cp Linux/RPM/work/RPMS/i386/*.rpm ${TAR_WORK})
83:
1.15 takayama 84: # set path=(/usr/ccs/bin /usr/local/bin $path); rehash
85: # (Note for taka). On unkei, cd Solaris/OpenXM/misc/packages and make build-on-unkei
1.7 takayama 86: build-on-unkei:
1.17 ! takayama 87: (cd Generic/openxm ; make clean-work ; make fetch)
1.9 takayama 88: (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} binary-tar-ball)
1.7 takayama 89:
90: copy-to-ftp-area:
91: -mkdir ${FTP_AREA}
92: cp ${TAR_WORK}/openxm*rpm ${FTP_AREA}
93: cp ${TAR_WORK}/openxm01-${VERSION}.tar.gz ${FTP_AREA}
94: cp ${TAR_WORK}/OpenXM-*.tgz ${FTP_AREA}
95: cp ${TAR_WORK}/openxm-${VERSION}.tgz ${FTP_AREA}
96: ls -l ${FTP_AREA}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>