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

File: [local] / OpenXM / misc / packages / Generic / openxm / Makefile (download)

Revision 1.2, Sun Mar 5 02:29:51 2000 UTC (24 years, 4 months ago) by takayama
Branch: MAIN
Changes since 1.1: +6 -4 lines

Cosmetic change.

# $OpenXM: OpenXM/misc/packages/Generic/openxm/Makefile,v 1.2 2000/03/05 02:29:51 takayama Exp $
# This is a Makefile to generate source and binary distributions of
# the OpenXM package on various plathome.

## For committers: prepare mycvs under your search path 
## to access to CVS servers.
RCVS=mycvs -d kerberos.math.kobe-u.ac.jp:/usr/cvs
TYPE=`uname -s`-`uname -m`

RELEASE=
## If you like to have a release name as a part of tar ball, then uncomment
## the next line.
##RELEASE=`uname -a`

BINARY_TAR_BALL_FOR_FREE_BSD=./work/OpenXM-binary-FreeBSD-i386.tgz

usage :
	@echo "Targets are "
	@echo "  fetch  :   get the sources from the cvs server under work"
	@echo "  make-tar-ball : generate OpenXM-source.tgz under work"
	@echo "  make-tar-ball-01 : generate OpenXM-source-01.tgz under work"
	@echo "  make-binary-tar-ball : generate OpenXM-binary-OS-CPU.tgz under work"
	@echo "  make-binary-tar-ball-using-binary-FreeBSD : generate OpenXM-binary-OS-CPU.tgz under work"
	@echo "   by using binary for FreeBSD because document generation might fails on other operating systems."
	@echo -n "Type is "
	@echo $(TYPE)

fetch :
	@if [ ! -f ./.fetch_done ]; then \
		/bin/rm -rf work ; mkdir work ; \
		( cd work ; $(RCVS) export -rHEAD OpenXM OpenXM_contrib OpenXM_contrib2) \
	fi
	@touch ./.fetch_done

make-tar-ball: fetch
	(cd work/OpenXM/src ; make generate-source-distribution)
	(cd work ; tar czvf OpenXM-source.tgz OpenXM OpenXM_Contrib OpenXM_contrib2 )

make-tar-ball-01: fetch
	@if [ ! -f ./.make-tar-ball-01_done ]; then \
		(cd work/OpenXM/src ; make generate-source-distribution) ; \
		(cd work ; tar czvf OpenXM-source-01.tgz OpenXM OpenXM_Contrib ) ; \
	fi
	@touch ./.make-tar-ball-01_done

make-binary-tar-ball : make-tar-ball-01
	(cd work/OpenXM/src ; make binary-dist )
	(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)
	(cd work/OpenXM/src ; make distclean )

make-binary-tar-ball-using-binary-FreeBSD :
	@if [ ! -f $(BINARY_TAR_BALL_FOR_FREE_BSD) ]; then \
		echo "Generate $BINARY_TAR_BALL_FOR_FREE_BSD first" ; \
		exit \
	fi
	/bin/rm -rf work/binary-$(TYPE)
	mkdir work/binary-$(TYPE)
	tar xzf - $(BINARY_TAR_BALL_FOR_FREE_BSD) | (cd work/binary-$(TYPE) ; tar xzf - )
	(cd work/binary-$(TYPE) ; /bin/rm -rf OpenXM/bin )
	(cd work/OpenXM/src ; make binary-dist )
	(cd work ; tar czf - OpenXM/bin OpenXM/lib OpenXM/rc ) | (cd work/binary-$(TYPE) ; tar xzf - )
	(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)
	(cd work/OpenXM/src ; make distclean )

clean :
	/bin/rm -rf .*_done
	/bin/rm -rf work