Annotation of OpenXM/misc/packages/Makefile, Revision 1.8
1.8 ! takayama 1: # $OpenXM: OpenXM/misc/packages/Makefile,v 1.7 2000/03/11 02:45:52 takayama Exp $
1.7 takayama 2:
3: VERSION=1.1.2
4: TAR_WORK=$(HOME)/tmp
5: NAME=taka
6: TAR_WORK_EXPLICIT=/home/${NAME}/tmp
7: JDK=jdk1.1.8
8: FTP_AREA=/home/ftp/pub/OpenXM/${VERSION}
9:
1.3 takayama 10:
11: # Modify below for priting.
12: PS=a2ps-j
13: LPR=lpr -Pdousan
1.1 takayama 14:
15: usage :
1.3 takayama 16: @echo "Targets "
17: @echo " clean "
18: @echo " print "
1.8 ! takayama 19: @echo "Do not forget to put java and javac in your search path."
1.7 takayama 20: @echo "1. generate-tar-balls"
21: @echo " (update-plist)"
22: @echo "2. build-on-orange (do not forget to set .rpmrc. See Linux/RPM/Makefile)"
23: @echo "3. build-on-pear"
24: @echo "4. build-on-redhat (do not forget to set .rpmrc)"
25: @echo "5. build-on-unkei"
26: @echo "6. copy-to-ftp-area "
1.1 takayama 27:
28: clean :
1.5 takayama 29: -(cd Generic/openxm ; make clean-work)
1.1 takayama 30: -(cd FreeBSD ; make clean)
1.2 takayama 31: -(cd Linux/RPM ; make clean)
1.4 takayama 32:
1.7 takayama 33: print:
34: $(PS) Generic/openxm/Makefile | $(LPR)
35: $(PS) Linux/RPM/Makefile | $(LPR)
36: $(PS) Linux/RPM/openxm-*spec.in | $(LPR)
37: $(PS) FreeBSD/openxm-ports/openxm-1.1.2/Makefile | $(LPR)
1.8 ! takayama 38: $(PS) Makefile | $(LPR)
1.7 takayama 39:
40:
1.4 takayama 41: generate-tar-balls:
1.7 takayama 42: -mkdir ${TAR_WORK}
1.4 takayama 43: make clean
44: (cd Generic/openxm ; make tar-ball)
1.7 takayama 45: make update-plist
46: (cd FreeBSD/openxm-${VERSION} ; make make-tar-ball-for-openxm-port)
1.4 takayama 47: (cd Linux/RPM ; make make-directory)
48: (cd Linux/RPM ; make link-for-real-openxm)
1.2 takayama 49:
1.7 takayama 50: update-plist:
51: (cd FreeBSD ; make VERSION=${VERSION} update-plist )
1.6 takayama 52:
1.7 takayama 53: build-on-orange:
54: (cd Generic/openxm ; make tar-ball-01)
55: (cd Generic/openxm ; make binary-tar-ball)
56: (cd Generic/openxm ; make shared-tar-ball)
57: (cd Generic/openxm ; make clean-work)
58: (cd Linux/RPM ; make build-shared-rpm)
59: (cp Linux/RPM/work/RPMS/i386/*.rpm ${TAR_WORK})
60:
61: # You should be a super user.
62: build-on-pear:
63: cp ${TAR_WORK_EXPLICIT}/openxm-${VERSION}.tar.gz /usr/ports/distfiles
64: (cd /usr/ports/math ; tar xzvf ${TAR_WORK_EXPLICIT}/openxm-port.tar.gz)
65: (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)
66:
67: build-on-redhat:
68: (cd Generic/openxm ; make binary-tar-ball)
69: (cd Linux/RPM ; make build-binary-rpm)
70: (cp Linux/RPM/work/RPMS/i386/*.rpm ${TAR_WORK})
71:
72: build-on-unkei:
73: (cd Generic/openxm ; make binary-tar-ball)
74:
75: copy-to-ftp-area:
76: -mkdir ${FTP_AREA}
77: cp ${TAR_WORK}/openxm*rpm ${FTP_AREA}
78: cp ${TAR_WORK}/openxm01-${VERSION}.tar.gz ${FTP_AREA}
79: cp ${TAR_WORK}/OpenXM-*.tgz ${FTP_AREA}
80: cp ${TAR_WORK}/openxm-${VERSION}.tgz ${FTP_AREA}
81: ls -l ${FTP_AREA}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>