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

1.12    ! takayama    1: # $OpenXM: OpenXM/misc/packages/FreeBSD/openxm-1.1.2/Makefile,v 1.11 2000/03/09 09:26:25 takayama Exp $
1.5       takayama    2:
1.12    ! takayama    3: ### THIS IS OBSOLETE. THIS DIRECTORY WILL BE REMOVED SOON.
        !             4: ### USE Generic/openxm/Makefile instead.
        !             5: ###  fake-openxm:
        !             6: ###  comments
        !             7: ### are useful and should be moved to somewhere.
        !             8: ###
1.5       takayama    9: ### NOTE for committers.
                     10: ### How to generate openxm-1.1.2.tar.gz (the tar ball of source code)?
                     11: ### How to generate openxm-port.tar.gz  (the tar ball of the port for openxm)?
                     12: ###     make make-tar-ball
1.7       takayama   13: ### Then, the two tar balls are generated under ${TAR_WORK}.
                     14: ### The default is ${HOME}/tmp
1.5       takayama   15: ###
1.7       takayama   16: ### How to test the port for openxm
                     17: ###     cd /usr/ports/math ; tar xzvf ${TAR_WORK}/openxm-port.tar.gz
                     18: ###     cp ${TAR_WORK}/openxm-1.1.2.tar.gz /usr/ports/distfiles
1.5       takayama   19: ###     cd /usr/ports/math/openxm ; make install
                     20: ###     [Try also make package , pkg_delete openxm-1.1.2 ,
                     21: ###      pkg_add openxm-1.1.2.tgz]
1.1       takayama   22:
1.6       takayama   23: # Modify this. It's for committers.
1.1       takayama   24: OpenXM_TOP=$(HOME)
1.8       takayama   25: ## For committers: prepare cvs-OpenXM under your search path
                     26: ## to access to CVS servers.
                     27: RCVS=cvs-OpenXM -d kerberos.math.sci.kobe-u.ac.jp:/usr/cvs
                     28: ### cvs-OpenXM is the following shell script
                     29: ## #!/bin/sh
                     30: ## CVS_RSH=ssh
                     31: ## export CVS_RSH
                     32: ## cvs $*
1.7       takayama   33: #
1.8       takayama   34:
1.7       takayama   35: TAR_WORK=$(HOME)/tmp
1.1       takayama   36:
                     37: srcdir = .
                     38: prefix=${PREFIX}
                     39: MAN_DIR=${prefix}/man/man1
                     40:
                     41: OpenXM_BINARIES=gnuplot4ox gnuplot_x11 k0 ox ../lib/asir/asir ox_sm1 oxlog oxweave sm1 tigers
                     42:
                     43: usage:
                     44:        @echo "Targets are all, install, clean, distclean"
1.2       takayama   45:        @echo "You need to specify the PREFIX to install,"
                     46:        @echo "e.g., make install PREFIX=/usr/local"
1.1       takayama   47:        @echo "For committers: make-tar-ball, make-tar-ball-from-local-OpenXM"
                     48:        @echo "                generate-symbolic-links, clean-this-directory"
1.8       takayama   49:        @echo " make-tar-ball : create openxm-1.1.2.tar.gz under $(TAR_WORK)"
1.10      takayama   50:        @echo " fake-openxm : create a fake OpenXM for a test."
1.1       takayama   51:
                     52: configure :
                     53:        (cd $(srcdir)/OpenXM/src ;      make configure )
                     54:
                     55: all : configure
                     56: #      (cd $(srcdir)/OpenXM/src ;      make ;  make install)
                     57:        (cd $(srcdir)/OpenXM/src ;      make binary-dist)
                     58:
                     59: install : all
1.10      takayama   60:        @echo "Installation phase with PREFIX= "
                     61:        @echo ${prefix}
1.1       takayama   62:        tar cf - OpenXM/bin OpenXM/doc OpenXM/lib OpenXM/rc OpenXM/Copyright OpenXM/include OpenXM/man  OpenXM/misc | (cd ${prefix} ; tar xf - )
                     63:        -for i in $(OpenXM_BINARIES); do strip ${prefix}/OpenXM/bin/$$i ; done
                     64:        (cd ${prefix}/OpenXM/rc ; make ; make install PREFIX=${prefix})
                     65:
                     66: install.man : install
1.9       takayama   67:        -cp ${prefix}/OpenXM/man/man1/sm1.1 ${prefix}/OpenXM/man/man1/openxm.1 ${MAN_DIR}
                     68:        -gzip ${MAN_DIR}/sm1.1 ${MAN_DIR}/openxm.1
1.1       takayama   69:
                     70: clean :
                     71:        cd $(srcdir)/OpenXM/src ; make clean
                     72:
                     73: distclean :
                     74:        cd $(srcdir)/OpenXM/src ; make distclean
                     75:
1.10      takayama   76: clean-installed-openxm:
                     77:        /bin/rm -rf ${prefix}/OpenXM
1.1       takayama   78:
                     79: #### The rests are for committers.
                     80: make-tar-ball :
                     81:        rm -rf OpenXM OpenXM_contrib OpenXM_contrib2
                     82:        $(RCVS) export -rHEAD OpenXM OpenXM_contrib OpenXM_contrib2
                     83:        rm -f *~
1.8       takayama   84:        echo "Creating a tar ball under $(TAR_WORK)"
1.7       takayama   85:        (cd .. ; tar czf ${TAR_WORK}/openxm-1.1.2.tar.gz openxm-1.1.2)
1.3       takayama   86:        rm -rf openxm
                     87:        mv OpenXM/misc/packages/FreeBSD/openxm-ports/openxm-1.1.2 openxm
1.7       takayama   88:        tar czf ${TAR_WORK}/openxm-port.tar.gz openxm
1.1       takayama   89:
1.4       takayama   90: make-tar-ball-for-openxm-port:
                     91:        rm -rf openxm
                     92:        rm -rf OpenXM/misc/packages/FreeBSD
                     93:        $(RCVS) export -rHEAD OpenXM/misc/packages/FreeBSD
                     94:        mv OpenXM/misc/packages/FreeBSD/openxm-ports/openxm-1.1.2 openxm
1.7       takayama   95:        tar czf ${TAR_WORK}/openxm-port.tar.gz openxm
1.4       takayama   96:
1.1       takayama   97: make-tar-ball-from-local-OpenXM :
                     98:        rm -rf OpenXM OpenXM_contrib OpenXM_contrib2
                     99:        (cd $(OpenXM_TOP) ; tar cf - OpenXM OpenXM_contrib OpenXM_contrib2) | tar xf -
                    100:        (cd OpenXM/src  ; make distclean )
                    101:        rm -f *~
                    102:        echo "It is ready to tar this directory."
                    103:
1.10      takayama  104: # These are used for the test.
1.1       takayama  105: generate-symbolic-links :
                    106:        rm -rf OpenXM OpenXM_contrib OpenXM_contrib2
                    107:        ln -s $(OpenXM_TOP)/OpenXM OpenXM
                    108:        ln -s $(OpenXM_TOP)/OpenXM OpenXM_Contrib
                    109:        ln -s $(OpenXM_TOP)/OpenXM OpenXM_Contrib2
                    110:
1.10      takayama  111: # Make a fake distribution for a test of RPM etc.
                    112: fake-openxm: clean-this-directory
                    113:        mkdir OpenXM
                    114:        mkdir OpenXM/bin OpenXM/lib OpenXM/doc OpenXM/man OpenXM/include OpenXM/rc
                    115:        mkdir OpenXM/Copyright OpenXM/misc
                    116:        touch OpenXM/bin/hoge-bin OpenXM/lib/hoge-lib OpenXM/doc/hoge-doc
                    117:        (cd OpenXM/bin ; ln -s ../lib/hoge-lib hoge-lib-link)
1.11      takayama  118:        touch OpenXM/include/hoge
                    119:        touch OpenXM/Copyright/hoge
                    120:        touch OpenXM/man/hoge-man
                    121:        touch OpenXM/rc/openxm  OpenXM/rc/oxgp OpenXM/rc/asir OpenXM/rc/sm1
                    122:        touch OpenXM/rc/oxmath OpenXM/rc/oxMathematica
1.10      takayama  123:        mkdir OpenXM/src
                    124:        echo "configure:" >OpenXM/src/Makefile
                    125:        echo "  echo configure" >>OpenXM/src/Makefile
                    126:        echo "binary-dist:" >>OpenXM/src/Makefile
                    127:        echo "  echo binary-dist" >>OpenXM/src/Makefile
                    128:        echo "install:" >OpenXM/rc/Makefile
1.11      takayama  129:        echo '  cp * $${PREFIX}/bin' >>OpenXM/rc/Makefile
1.10      takayama  130:        echo "Creating a fake tar ball at ${TAR_WORK}"
                    131:        (cd .. ; tar czf ${TAR_WORK}/openxm-fake.tar.gz openxm-1.1.2)
1.1       takayama  132:
                    133:
                    134: clean-this-directory:
1.4       takayama  135:        /bin/rm -rf OpenXM OpenXM_contrib OpenXM_contrib2 *~ openxm

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