[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.7

1.7     ! takayama    1: # $OpenXM: OpenXM/misc/packages/FreeBSD/openxm-1.1.2/Makefile,v 1.6 2000/03/04 11:03:35 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)
                     19: # Modify this.  It's for committters.
                     20: RCVS=mycvs -d kerberos.math.kobe-u.ac.jp:/usr/cvs
1.7     ! takayama   21: #
        !            22: TAR_WORK=$(HOME)/tmp
1.1       takayama   23:
                     24: srcdir = .
                     25: prefix=${PREFIX}
                     26: MAN_DIR=${prefix}/man/man1
                     27:
                     28: OpenXM_BINARIES=gnuplot4ox gnuplot_x11 k0 ox ../lib/asir/asir ox_sm1 oxlog oxweave sm1 tigers
                     29:
                     30: usage:
                     31:        @echo "Targets are all, install, clean, distclean"
1.2       takayama   32:        @echo "You need to specify the PREFIX to install,"
                     33:        @echo "e.g., make install PREFIX=/usr/local"
1.1       takayama   34:        @echo "For committers: make-tar-ball, make-tar-ball-from-local-OpenXM"
                     35:        @echo "                generate-symbolic-links, clean-this-directory"
1.7     ! takayama   36:        @echo " make-tar-ball : create openxm-1.1.2.tar.gz under $TAR_WORK"
1.1       takayama   37:
                     38: configure :
                     39:        (cd $(srcdir)/OpenXM/src ;      make configure )
                     40:
                     41: all : configure
                     42: #      (cd $(srcdir)/OpenXM/src ;      make ;  make install)
                     43:        (cd $(srcdir)/OpenXM/src ;      make binary-dist)
                     44:
                     45: install : all
                     46:        tar cf - OpenXM/bin OpenXM/doc OpenXM/lib OpenXM/rc OpenXM/Copyright OpenXM/include OpenXM/man  OpenXM/misc | (cd ${prefix} ; tar xf - )
                     47:        -for i in $(OpenXM_BINARIES); do strip ${prefix}/OpenXM/bin/$$i ; done
                     48:        (cd ${prefix}/OpenXM/rc ; make ; make install PREFIX=${prefix})
                     49:
                     50: install.man : install
                     51:        -cp ${prefix}/OpenXM/man/man1/* ${MAN_DIR}
                     52:
                     53: clean :
                     54:        cd $(srcdir)/OpenXM/src ; make clean
                     55:
                     56: distclean :
                     57:        cd $(srcdir)/OpenXM/src ; make distclean
                     58:
                     59:
                     60: #### The rests are for committers.
                     61: make-tar-ball :
                     62:        rm -rf OpenXM OpenXM_contrib OpenXM_contrib2
                     63:        $(RCVS) export -rHEAD OpenXM OpenXM_contrib OpenXM_contrib2
                     64:        rm -f *~
1.7     ! takayama   65:        echo "Creating a tar ball under $TAR_WORK"
        !            66:        (cd .. ; tar czf ${TAR_WORK}/openxm-1.1.2.tar.gz openxm-1.1.2)
1.3       takayama   67:        rm -rf openxm
                     68:        mv OpenXM/misc/packages/FreeBSD/openxm-ports/openxm-1.1.2 openxm
1.7     ! takayama   69:        tar czf ${TAR_WORK}/openxm-port.tar.gz openxm
1.1       takayama   70:
1.4       takayama   71: make-tar-ball-for-openxm-port:
                     72:        rm -rf openxm
                     73:        rm -rf OpenXM/misc/packages/FreeBSD
                     74:        $(RCVS) export -rHEAD OpenXM/misc/packages/FreeBSD
                     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.4       takayama   77:
1.1       takayama   78: make-tar-ball-from-local-OpenXM :
                     79:        rm -rf OpenXM OpenXM_contrib OpenXM_contrib2
                     80:        (cd $(OpenXM_TOP) ; tar cf - OpenXM OpenXM_contrib OpenXM_contrib2) | tar xf -
                     81:        (cd OpenXM/src  ; make distclean )
                     82:        rm -f *~
                     83:        echo "It is ready to tar this directory."
                     84:
                     85: # This is used for the test.
                     86: generate-symbolic-links :
                     87:        rm -rf OpenXM OpenXM_contrib OpenXM_contrib2
                     88:        ln -s $(OpenXM_TOP)/OpenXM OpenXM
                     89:        ln -s $(OpenXM_TOP)/OpenXM OpenXM_Contrib
                     90:        ln -s $(OpenXM_TOP)/OpenXM OpenXM_Contrib2
                     91:
                     92:
                     93:
                     94: clean-this-directory:
1.4       takayama   95:        /bin/rm -rf OpenXM OpenXM_contrib OpenXM_contrib2 *~ openxm

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