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

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

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