Annotation of OpenXM/misc/packages/Makefile, Revision 1.21
1.21 ! takayama 1: # $OpenXM: OpenXM/misc/packages/Makefile,v 1.20 2000/03/16 01:51:09 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:
1.19 takayama 48: clean-Generic-openxm-work:
49: -(cd Generic/openxm ; make clean-work ; make fetch)
1.7 takayama 50:
1.4 takayama 51: generate-tar-balls:
1.7 takayama 52: -mkdir ${TAR_WORK}
1.4 takayama 53: make clean
1.9 takayama 54: (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} tar-ball)
1.13 takayama 55: (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} tar-ball-01)
1.7 takayama 56: make update-plist
1.9 takayama 57: (cd FreeBSD ; make TAG=${TAG} VERSION=${VERSION} make-tar-ball-for-openxm-port)
1.2 takayama 58:
1.7 takayama 59: update-plist:
1.11 takayama 60: (cd FreeBSD ; make VERSION=${VERSION} TAG=${TAG} update-plist )
1.6 takayama 61:
1.17 takayama 62: prepare-build-rpm:
63: (cd Linux/RPM ; make make-directory)
64: (cd Linux/RPM ; make link-for-real-openxm)
65:
1.15 takayama 66: # set path=(/usr/local/jdk1.1.8/bin $path) ; rehash
1.19 takayama 67: # build-on-orange should depend on clean-Generic-openxm-work in a future.
1.17 takayama 68: build-on-orange: prepare-build-rpm
1.9 takayama 69: (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} binary-tar-ball)
70: (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} shared-tar-ball)
71: (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} clean-work)
72: (cd Linux/RPM ; make TAG=${TAG} VERSION=${VERSION} build-shared-rpm)
1.7 takayama 73: (cp Linux/RPM/work/RPMS/i386/*.rpm ${TAR_WORK})
1.21 ! takayama 74: (cp Linux/RPM/work/RPMS/noarch/*.rpm ${TAR_WORK})
1.7 takayama 75:
76: # You should be a super user.
77: build-on-pear:
78: cp ${TAR_WORK_EXPLICIT}/openxm-${VERSION}.tar.gz /usr/ports/distfiles
1.12 takayama 79: (cd /usr/ports/math ; /bin/rm -rf openxm ; tar xzvf ${TAR_WORK_EXPLICIT}/openxm-port.tar.gz)
80: (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 81:
1.19 takayama 82: build-on-redhat: prepare-build-rpm clean-Generic-openxm-work
1.20 takayama 83: (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} TAR_WORK=${TAR_WORK} tar-ball)
1.9 takayama 84: (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} binary-tar-ball)
1.7 takayama 85: (cd Linux/RPM ; make build-binary-rpm)
86: (cp Linux/RPM/work/RPMS/i386/*.rpm ${TAR_WORK})
87:
1.15 takayama 88: # set path=(/usr/ccs/bin /usr/local/bin $path); rehash
1.18 takayama 89: # setenv OpenXM_HOME xxx-yyy
90: # (Note for taka). On unkei, cd Solaris/OpenXM/misc/packages,
91: # setenv OpenXM_HOME $HOME/Solaris/OpenXM
92: # and make OpenXM_HOME=$OpenXM_HOME build-on-unkei
1.19 takayama 93: build-on-unkei: clean-Generic-openxm-work
1.18 takayama 94: (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} OpenXM_HOME=${OpenXM_HOME} binary-tar-ball)
1.7 takayama 95:
96: copy-to-ftp-area:
97: -mkdir ${FTP_AREA}
98: cp ${TAR_WORK}/openxm*rpm ${FTP_AREA}
99: cp ${TAR_WORK}/openxm01-${VERSION}.tar.gz ${FTP_AREA}
100: cp ${TAR_WORK}/OpenXM-*.tgz ${FTP_AREA}
101: cp ${TAR_WORK}/openxm-${VERSION}.tgz ${FTP_AREA}
102: ls -l ${FTP_AREA}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>