Annotation of OpenXM/misc/packages/FreeBSD/openxm-1.1.2/Makefile, Revision 1.9
1.9 ! takayama 1: # $OpenXM: OpenXM/misc/packages/FreeBSD/openxm-1.1.2/Makefile,v 1.8 2000/03/06 03:07:17 takayama Exp $
1.5 takayama 2:
3: ### NOTE for committers.
4: ### How to generate openxm-1.1.2.tar.gz (the tar ball of source code)?
5: ### How to generate openxm-port.tar.gz (the tar ball of the port for openxm)?
6: ### make make-tar-ball
1.7 takayama 7: ### Then, the two tar balls are generated under ${TAR_WORK}.
8: ### The default is ${HOME}/tmp
1.5 takayama 9: ###
1.7 takayama 10: ### How to test the port for openxm
11: ### cd /usr/ports/math ; tar xzvf ${TAR_WORK}/openxm-port.tar.gz
12: ### cp ${TAR_WORK}/openxm-1.1.2.tar.gz /usr/ports/distfiles
1.5 takayama 13: ### cd /usr/ports/math/openxm ; make install
14: ### [Try also make package , pkg_delete openxm-1.1.2 ,
15: ### pkg_add openxm-1.1.2.tgz]
1.1 takayama 16:
1.6 takayama 17: # Modify this. It's for committers.
1.1 takayama 18: OpenXM_TOP=$(HOME)
1.8 takayama 19: ## For committers: prepare cvs-OpenXM under your search path
20: ## to access to CVS servers.
21: RCVS=cvs-OpenXM -d kerberos.math.sci.kobe-u.ac.jp:/usr/cvs
22: ### cvs-OpenXM is the following shell script
23: ## #!/bin/sh
24: ## CVS_RSH=ssh
25: ## export CVS_RSH
26: ## cvs $*
1.7 takayama 27: #
1.8 takayama 28:
1.7 takayama 29: TAR_WORK=$(HOME)/tmp
1.1 takayama 30:
31: srcdir = .
32: prefix=${PREFIX}
33: MAN_DIR=${prefix}/man/man1
34:
35: OpenXM_BINARIES=gnuplot4ox gnuplot_x11 k0 ox ../lib/asir/asir ox_sm1 oxlog oxweave sm1 tigers
36:
37: usage:
38: @echo "Targets are all, install, clean, distclean"
1.2 takayama 39: @echo "You need to specify the PREFIX to install,"
40: @echo "e.g., make install PREFIX=/usr/local"
1.1 takayama 41: @echo "For committers: make-tar-ball, make-tar-ball-from-local-OpenXM"
42: @echo " generate-symbolic-links, clean-this-directory"
1.8 takayama 43: @echo " make-tar-ball : create openxm-1.1.2.tar.gz under $(TAR_WORK)"
1.1 takayama 44:
45: configure :
46: (cd $(srcdir)/OpenXM/src ; make configure )
47:
48: all : configure
49: # (cd $(srcdir)/OpenXM/src ; make ; make install)
50: (cd $(srcdir)/OpenXM/src ; make binary-dist)
51:
52: install : all
53: tar cf - OpenXM/bin OpenXM/doc OpenXM/lib OpenXM/rc OpenXM/Copyright OpenXM/include OpenXM/man OpenXM/misc | (cd ${prefix} ; tar xf - )
54: -for i in $(OpenXM_BINARIES); do strip ${prefix}/OpenXM/bin/$$i ; done
55: (cd ${prefix}/OpenXM/rc ; make ; make install PREFIX=${prefix})
56:
57: install.man : install
1.9 ! takayama 58: -cp ${prefix}/OpenXM/man/man1/sm1.1 ${prefix}/OpenXM/man/man1/openxm.1 ${MAN_DIR}
! 59: -gzip ${MAN_DIR}/sm1.1 ${MAN_DIR}/openxm.1
1.1 takayama 60:
61: clean :
62: cd $(srcdir)/OpenXM/src ; make clean
63:
64: distclean :
65: cd $(srcdir)/OpenXM/src ; make distclean
66:
67:
68: #### The rests are for committers.
69: make-tar-ball :
70: rm -rf OpenXM OpenXM_contrib OpenXM_contrib2
71: $(RCVS) export -rHEAD OpenXM OpenXM_contrib OpenXM_contrib2
72: rm -f *~
1.8 takayama 73: echo "Creating a tar ball under $(TAR_WORK)"
1.7 takayama 74: (cd .. ; tar czf ${TAR_WORK}/openxm-1.1.2.tar.gz openxm-1.1.2)
1.3 takayama 75: rm -rf openxm
76: mv OpenXM/misc/packages/FreeBSD/openxm-ports/openxm-1.1.2 openxm
1.7 takayama 77: tar czf ${TAR_WORK}/openxm-port.tar.gz openxm
1.1 takayama 78:
1.4 takayama 79: make-tar-ball-for-openxm-port:
80: rm -rf openxm
81: rm -rf OpenXM/misc/packages/FreeBSD
82: $(RCVS) export -rHEAD OpenXM/misc/packages/FreeBSD
83: mv OpenXM/misc/packages/FreeBSD/openxm-ports/openxm-1.1.2 openxm
1.7 takayama 84: tar czf ${TAR_WORK}/openxm-port.tar.gz openxm
1.4 takayama 85:
1.1 takayama 86: make-tar-ball-from-local-OpenXM :
87: rm -rf OpenXM OpenXM_contrib OpenXM_contrib2
88: (cd $(OpenXM_TOP) ; tar cf - OpenXM OpenXM_contrib OpenXM_contrib2) | tar xf -
89: (cd OpenXM/src ; make distclean )
90: rm -f *~
91: echo "It is ready to tar this directory."
92:
93: # This is used for the test.
94: generate-symbolic-links :
95: rm -rf OpenXM OpenXM_contrib OpenXM_contrib2
96: ln -s $(OpenXM_TOP)/OpenXM OpenXM
97: ln -s $(OpenXM_TOP)/OpenXM OpenXM_Contrib
98: ln -s $(OpenXM_TOP)/OpenXM OpenXM_Contrib2
99:
100:
101:
102: clean-this-directory:
1.4 takayama 103: /bin/rm -rf OpenXM OpenXM_contrib OpenXM_contrib2 *~ openxm
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>