Annotation of OpenXM/misc/packages/Generic/openxm/Makefile, Revision 1.1
1.1 ! takayama 1: # $OpenXM$
! 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:
! 15: usage :
! 16: @echo "Targets are "
! 17: @echo " fetch : get the sources from the cvs server under work"
! 18: @echo " make-tar-ball : generate OpenXM-source.tgz under work"
! 19: @echo " make-tar-ball-01 : generate OpenXM-source-01.tgz under work"
! 20: @echo " make-binary-tar-ball : generate OpenXM-binary-OS-CPU.tgz under work"
! 21: @echo " make-binary-tar-ball-using-binary-FreeBSD : generate OpenXM-binary-OS-CPU.tgz under work"
! 22: @echo " by using binary for FreeBSD because document generation might fails on other operating systems."
! 23: @echo -n "Type is "
! 24: @echo $(TYPE)
! 25:
! 26: fetch :
! 27: @if [ ! -f ./.fetch_done ]; then \
! 28: /bin/rm -rf work ; mkdir work ; \
! 29: ( cd work ; $(RCVS) export -rHEAD OpenXM OpenXM_contrib OpenXM_contrib2) \
! 30: fi
! 31: @touch ./.fetch_done
! 32:
! 33: make-tar-ball: fetch
! 34: (cd work/OpenXM/src ; make generate-source-distribution)
! 35: (cd work ; tar czvf OpenXM-source.tgz OpenXM OpenXM_Contrib OpenXM_contrib2 )
! 36:
! 37: make-tar-ball-01: fetch
! 38: @if [ ! -f ./.make-tar-ball-01_done ]; then \
! 39: (cd work/OpenXM/src ; make generate-source-distribution) ; \
! 40: (cd work ; tar czvf OpenXM-source-01.tgz OpenXM OpenXM_Contrib ) ; \
! 41: fi
! 42: @touch ./.make-tar-ball-01_done
! 43:
! 44: make-binary-tar-ball : make-tar-ball-01
! 45: (cd work/OpenXM/src ; make binary-dist )
! 46: (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)
! 47: (cd work/OpenXM/src ; make distclean )
! 48:
! 49: make-binary-tar-ball-using-binary-FreeBSD :
! 50: @if [ ! -f ./work/OpenXM-binary-FreeBSD-i386.tgz ]; then \
! 51: echo "Generate work/OpenXM-binary-FreeBSD-i386.tgz first" ; \
! 52: exit \
! 53: fi
! 54: /bin/rm -rf work/binary-$(TYPE)
! 55: mkdir work/binary-$(TYPE)
! 56: (cd work/binary-$(TYPE) ; tar xzf ../OpenXM-binary-FreeBSD-i386.tgz )
! 57: (cd work/binary-$(TYPE) ; /bin/rm -rf OpenXM/bin )
! 58: (cd work/OpenXM/src ; make binary-dist )
! 59: (cd work ; tar czf - OpenXM/bin OpenXM/lib OpenXM/rc ) | (cd work/binary-$(TYPE) ; tar xzf - )
! 60: (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)
! 61: (cd work/OpenXM/src ; make distclean )
! 62:
! 63: clean :
! 64: /bin/rm -rf .*_done
! 65: /bin/rm -rf work
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>