Annotation of OpenXM/misc/packages/FreeBSD/openxm-1.1.2/Makefile, Revision 1.11
1.11 ! takayama 1: # $OpenXM: OpenXM/misc/packages/FreeBSD/openxm-1.1.2/Makefile,v 1.10 2000/03/09 08:35:42 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.10 takayama 44: @echo " fake-openxm : create a fake OpenXM for a test."
1.1 takayama 45:
46: configure :
47: (cd $(srcdir)/OpenXM/src ; make configure )
48:
49: all : configure
50: # (cd $(srcdir)/OpenXM/src ; make ; make install)
51: (cd $(srcdir)/OpenXM/src ; make binary-dist)
52:
53: install : all
1.10 takayama 54: @echo "Installation phase with PREFIX= "
55: @echo ${prefix}
1.1 takayama 56: tar cf - OpenXM/bin OpenXM/doc OpenXM/lib OpenXM/rc OpenXM/Copyright OpenXM/include OpenXM/man OpenXM/misc | (cd ${prefix} ; tar xf - )
57: -for i in $(OpenXM_BINARIES); do strip ${prefix}/OpenXM/bin/$$i ; done
58: (cd ${prefix}/OpenXM/rc ; make ; make install PREFIX=${prefix})
59:
60: install.man : install
1.9 takayama 61: -cp ${prefix}/OpenXM/man/man1/sm1.1 ${prefix}/OpenXM/man/man1/openxm.1 ${MAN_DIR}
62: -gzip ${MAN_DIR}/sm1.1 ${MAN_DIR}/openxm.1
1.1 takayama 63:
64: clean :
65: cd $(srcdir)/OpenXM/src ; make clean
66:
67: distclean :
68: cd $(srcdir)/OpenXM/src ; make distclean
69:
1.10 takayama 70: clean-installed-openxm:
71: /bin/rm -rf ${prefix}/OpenXM
1.1 takayama 72:
73: #### The rests are for committers.
74: make-tar-ball :
75: rm -rf OpenXM OpenXM_contrib OpenXM_contrib2
76: $(RCVS) export -rHEAD OpenXM OpenXM_contrib OpenXM_contrib2
77: rm -f *~
1.8 takayama 78: echo "Creating a tar ball under $(TAR_WORK)"
1.7 takayama 79: (cd .. ; tar czf ${TAR_WORK}/openxm-1.1.2.tar.gz openxm-1.1.2)
1.3 takayama 80: rm -rf openxm
81: mv OpenXM/misc/packages/FreeBSD/openxm-ports/openxm-1.1.2 openxm
1.7 takayama 82: tar czf ${TAR_WORK}/openxm-port.tar.gz openxm
1.1 takayama 83:
1.4 takayama 84: make-tar-ball-for-openxm-port:
85: rm -rf openxm
86: rm -rf OpenXM/misc/packages/FreeBSD
87: $(RCVS) export -rHEAD OpenXM/misc/packages/FreeBSD
88: mv OpenXM/misc/packages/FreeBSD/openxm-ports/openxm-1.1.2 openxm
1.7 takayama 89: tar czf ${TAR_WORK}/openxm-port.tar.gz openxm
1.4 takayama 90:
1.1 takayama 91: make-tar-ball-from-local-OpenXM :
92: rm -rf OpenXM OpenXM_contrib OpenXM_contrib2
93: (cd $(OpenXM_TOP) ; tar cf - OpenXM OpenXM_contrib OpenXM_contrib2) | tar xf -
94: (cd OpenXM/src ; make distclean )
95: rm -f *~
96: echo "It is ready to tar this directory."
97:
1.10 takayama 98: # These are used for the test.
1.1 takayama 99: generate-symbolic-links :
100: rm -rf OpenXM OpenXM_contrib OpenXM_contrib2
101: ln -s $(OpenXM_TOP)/OpenXM OpenXM
102: ln -s $(OpenXM_TOP)/OpenXM OpenXM_Contrib
103: ln -s $(OpenXM_TOP)/OpenXM OpenXM_Contrib2
104:
1.10 takayama 105: # Make a fake distribution for a test of RPM etc.
106: fake-openxm: clean-this-directory
107: mkdir OpenXM
108: mkdir OpenXM/bin OpenXM/lib OpenXM/doc OpenXM/man OpenXM/include OpenXM/rc
109: mkdir OpenXM/Copyright OpenXM/misc
110: touch OpenXM/bin/hoge-bin OpenXM/lib/hoge-lib OpenXM/doc/hoge-doc
111: (cd OpenXM/bin ; ln -s ../lib/hoge-lib hoge-lib-link)
1.11 ! takayama 112: touch OpenXM/include/hoge
! 113: touch OpenXM/Copyright/hoge
! 114: touch OpenXM/man/hoge-man
! 115: touch OpenXM/rc/openxm OpenXM/rc/oxgp OpenXM/rc/asir OpenXM/rc/sm1
! 116: touch OpenXM/rc/oxmath OpenXM/rc/oxMathematica
1.10 takayama 117: mkdir OpenXM/src
118: echo "configure:" >OpenXM/src/Makefile
119: echo " echo configure" >>OpenXM/src/Makefile
120: echo "binary-dist:" >>OpenXM/src/Makefile
121: echo " echo binary-dist" >>OpenXM/src/Makefile
122: echo "install:" >OpenXM/rc/Makefile
1.11 ! takayama 123: echo ' cp * $${PREFIX}/bin' >>OpenXM/rc/Makefile
1.10 takayama 124: echo "Creating a fake tar ball at ${TAR_WORK}"
125: (cd .. ; tar czf ${TAR_WORK}/openxm-fake.tar.gz openxm-1.1.2)
1.1 takayama 126:
127:
128: clean-this-directory:
1.4 takayama 129: /bin/rm -rf OpenXM OpenXM_contrib OpenXM_contrib2 *~ openxm
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>