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

Annotation of OpenXM/misc/packages/Generic/openxm/Makefile, Revision 1.3

1.3     ! takayama    1: # $OpenXM: OpenXM/misc/packages/Generic/openxm/Makefile,v 1.2 2000/03/05 02:29:51 takayama Exp $
1.1       takayama    2: # This is a Makefile to generate source and binary distributions of
1.3     ! takayama    3: # the OpenXM package on various plathomes.
1.1       takayama    4:
                      5: ## For committers: prepare mycvs under your search path
                      6: ## to access to CVS servers.
                      7: RCVS=mycvs -d kerberos.math.kobe-u.ac.jp:/usr/cvs
                      8: TYPE=`uname -s`-`uname -m`
                      9:
1.3     ! takayama   10: ## OpenXM Version Number.
        !            11: VERSION=1.1.2
        !            12:
1.1       takayama   13: RELEASE=
                     14: ## If you like to have a release name as a part of tar ball, then uncomment
                     15: ## the next line.
                     16: ##RELEASE=`uname -a`
                     17:
1.2       takayama   18: BINARY_TAR_BALL_FOR_FREE_BSD=./work/OpenXM-binary-FreeBSD-i386.tgz
                     19:
1.1       takayama   20: usage :
                     21:        @echo "Targets are "
                     22:        @echo "  fetch  :   get the sources from the cvs server under work"
                     23:        @echo "  make-tar-ball : generate OpenXM-source.tgz under work"
                     24:        @echo "  make-tar-ball-01 : generate OpenXM-source-01.tgz under work"
                     25:        @echo "  make-binary-tar-ball : generate OpenXM-binary-OS-CPU.tgz under work"
                     26:        @echo "  make-binary-tar-ball-using-binary-FreeBSD : generate OpenXM-binary-OS-CPU.tgz under work"
                     27:        @echo "   by using binary for FreeBSD because document generation might fails on other operating systems."
                     28:        @echo -n "Type is "
                     29:        @echo $(TYPE)
                     30:
                     31: fetch :
                     32:        @if [ ! -f ./.fetch_done ]; then \
                     33:                /bin/rm -rf work ; mkdir work ; \
                     34:                ( cd work ; $(RCVS) export -rHEAD OpenXM OpenXM_contrib OpenXM_contrib2) \
                     35:        fi
                     36:        @touch ./.fetch_done
                     37:
                     38: make-tar-ball: fetch
                     39:        (cd work/OpenXM/src ; make generate-source-distribution)
                     40:        (cd work ; tar czvf OpenXM-source.tgz OpenXM OpenXM_Contrib OpenXM_contrib2 )
                     41:
                     42: make-tar-ball-01: fetch
                     43:        @if [ ! -f ./.make-tar-ball-01_done ]; then \
                     44:                (cd work/OpenXM/src ; make generate-source-distribution) ; \
                     45:                (cd work ; tar czvf OpenXM-source-01.tgz OpenXM OpenXM_Contrib ) ; \
                     46:        fi
                     47:        @touch ./.make-tar-ball-01_done
                     48:
                     49: make-binary-tar-ball : make-tar-ball-01
                     50:        (cd work/OpenXM/src ; make binary-dist )
                     51:        (cd work ; tar czf work/OpenXM-binary-$(TYPE)$(RELEASE).tgz OpenXM/Copyright OpenXM/bin OpenXM/doc OpenXM/include OpenXM/lib OpenXM/man OpenXM/rc OpenXM/install.txt)
                     52:        (cd work/OpenXM/src ; make distclean )
                     53:
                     54: make-binary-tar-ball-using-binary-FreeBSD :
1.2       takayama   55:        @if [ ! -f $(BINARY_TAR_BALL_FOR_FREE_BSD) ]; then \
                     56:                echo "Generate $BINARY_TAR_BALL_FOR_FREE_BSD first" ; \
1.1       takayama   57:                exit \
                     58:        fi
                     59:        /bin/rm -rf work/binary-$(TYPE)
                     60:        mkdir work/binary-$(TYPE)
1.2       takayama   61:        tar xzf - $(BINARY_TAR_BALL_FOR_FREE_BSD) | (cd work/binary-$(TYPE) ; tar xzf - )
1.1       takayama   62:        (cd work/binary-$(TYPE) ; /bin/rm -rf OpenXM/bin )
                     63:        (cd work/OpenXM/src ; make binary-dist )
                     64:        (cd work ; tar czf - OpenXM/bin OpenXM/lib OpenXM/rc ) | (cd work/binary-$(TYPE) ; tar xzf - )
                     65:        (cd work ; tar czf work/OpenXM-binary-$(TYPE)$(RELEASE).tgz OpenXM/Copyright OpenXM/bin OpenXM/doc OpenXM/include OpenXM/lib OpenXM/man OpenXM/rc OpenXM/install.txt)
                     66:        (cd work/OpenXM/src ; make distclean )
                     67:
                     68: clean :
1.3     ! takayama   69:        /bin/rm -rf .*_done *~
1.1       takayama   70:        /bin/rm -rf work

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