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