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

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

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