[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / misc / packages / FreeBSD / openxm-1.1.2

Annotation of OpenXM/misc/packages/FreeBSD/openxm-1.1.2/Makefile, Revision 1.8

1.8     ! takayama    1: # $OpenXM: OpenXM/misc/packages/FreeBSD/openxm-1.1.2/Makefile,v 1.7 2000/03/05 06:11:54 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
                     58:        -cp ${prefix}/OpenXM/man/man1/* ${MAN_DIR}
                     59:
                     60: clean :
                     61:        cd $(srcdir)/OpenXM/src ; make clean
                     62:
                     63: distclean :
                     64:        cd $(srcdir)/OpenXM/src ; make distclean
                     65:
                     66:
                     67: #### The rests are for committers.
                     68: make-tar-ball :
                     69:        rm -rf OpenXM OpenXM_contrib OpenXM_contrib2
                     70:        $(RCVS) export -rHEAD OpenXM OpenXM_contrib OpenXM_contrib2
                     71:        rm -f *~
1.8     ! takayama   72:        echo "Creating a tar ball under $(TAR_WORK)"
1.7       takayama   73:        (cd .. ; tar czf ${TAR_WORK}/openxm-1.1.2.tar.gz openxm-1.1.2)
1.3       takayama   74:        rm -rf openxm
                     75:        mv OpenXM/misc/packages/FreeBSD/openxm-ports/openxm-1.1.2 openxm
1.7       takayama   76:        tar czf ${TAR_WORK}/openxm-port.tar.gz openxm
1.1       takayama   77:
1.4       takayama   78: make-tar-ball-for-openxm-port:
                     79:        rm -rf openxm
                     80:        rm -rf OpenXM/misc/packages/FreeBSD
                     81:        $(RCVS) export -rHEAD OpenXM/misc/packages/FreeBSD
                     82:        mv OpenXM/misc/packages/FreeBSD/openxm-ports/openxm-1.1.2 openxm
1.7       takayama   83:        tar czf ${TAR_WORK}/openxm-port.tar.gz openxm
1.4       takayama   84:
1.1       takayama   85: make-tar-ball-from-local-OpenXM :
                     86:        rm -rf OpenXM OpenXM_contrib OpenXM_contrib2
                     87:        (cd $(OpenXM_TOP) ; tar cf - OpenXM OpenXM_contrib OpenXM_contrib2) | tar xf -
                     88:        (cd OpenXM/src  ; make distclean )
                     89:        rm -f *~
                     90:        echo "It is ready to tar this directory."
                     91:
                     92: # This is used for the test.
                     93: generate-symbolic-links :
                     94:        rm -rf OpenXM OpenXM_contrib OpenXM_contrib2
                     95:        ln -s $(OpenXM_TOP)/OpenXM OpenXM
                     96:        ln -s $(OpenXM_TOP)/OpenXM OpenXM_Contrib
                     97:        ln -s $(OpenXM_TOP)/OpenXM OpenXM_Contrib2
                     98:
                     99:
                    100:
                    101: clean-this-directory:
1.4       takayama  102:        /bin/rm -rf OpenXM OpenXM_contrib OpenXM_contrib2 *~ openxm

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>