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

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

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