Annotation of OpenXM/misc/packages/Linux/Debian-free/Makefile, Revision 1.1
1.1 ! takayama 1: # $OpenXM$
! 2:
! 3: ## You need the following packages to build *.deb
! 4: ## apt-get install fakeroot
! 5: ## apt-get install debhelper
! 6: ## ( apt-get install dh-make )
! 7:
! 8: ## How to debug?
! 9: ## ex1.
! 10: ## cd work/openxm-head ; fakeroot make -f debian/rules build
! 11:
! 12: VERSION=head
! 13: ## configuration only for committers
! 14: WHO=$(USER)@orange2
! 15: FTP_AREA=/home/ftp/pub/OpenXM/${VERSION}
! 16: TAR_WORK=$(HOME)/tmp
! 17:
! 18: RM=rm
! 19:
! 20: usage :
! 21: @echo "Usage (Makefile for *.deb):"
! 22: @echo "clean"
! 23: @echo "build, build-noclean"
! 24: @echo "build-main"
! 25: @echo "copy-to-ftp-area"
! 26:
! 27: clean:
! 28: ${RM} -rf work
! 29:
! 30: build-noclean:
! 31: -mkdir work
! 32: (cd ../../Generic/openxm ; make tar-ball VERSION=${VERSION})
! 33: (cd work ; tar xzvf ${TAR_WORK}/openxm-${VERSION}.tar.gz)
! 34: -(cd work/openxm-${VERSION} ; ln -s ../../debian)
! 35: make build-main
! 36: build-main:
! 37: ## Start of build
! 38: (cd work/openxm-${VERSION}; fakeroot debian/rules build)
! 39: (cd work/openxm-${VERSION}; fakeroot debian/rules install)
! 40: # dpkg-buildpackage reads info from debian/control
! 41: (cd work/openxm-${VERSION}; fakeroot dpkg-buildpackage -b -B)
! 42:
! 43: build : clean
! 44: make build-noclean
! 45:
! 46: copy-to-ftp-area:
! 47: -scp work/openxm-*.deb ${WHO}:${FTP_AREA}
! 48: -scp work/openxm_*.dsc ${WHO}:${FTP_AREA}
! 49: -scp work/openxm_*.changes ${WHO}:${FTP_AREA}
! 50:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>