Annotation of OpenXM/misc/packages/Linux/Debian/Makefile-knoppix, 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:
! 7: VERSION=head
! 8: ## configuration only for committers
! 9: WHO=${USER}@orange2
! 10: FTP_AREA=/home/ftp/pub/OpenXM/${VERSION}/knoppix
! 11: TAR_WORK=$(HOME)/tmp
! 12:
! 13: RM=rm
! 14:
! 15: usage :
! 16: @echo "Usage (Makefile for *.deb):"
! 17: @echo "clean"
! 18: @echo "build, build-noclean"
! 19: @echo "build-main"
! 20: @echo "copy-to-ftp-area"
! 21:
! 22: clean:
! 23: ${RM} -rf work
! 24: # (cd ../../Generic/openxm ; make clean-work )
! 25:
! 26: build-noclean:
! 27: -mkdir work
! 28: (cd ../../Generic/openxm ; make tar-ball VERSION=${VERSION})
! 29: (cd work ; tar xzvf ${TAR_WORK}/openxm-${VERSION}.tar.gz)
! 30: -(cd work/openxm-${VERSION} ; ln -s ../../debian)
! 31: touch work/openxm-${VERSION}/src/asir-port/for_knoppix
! 32: make build-main
! 33: build-main:
! 34: ## Start of build
! 35: (cd work/openxm-${VERSION}; fakeroot debian/rules build)
! 36: (cd work/openxm-${VERSION}; fakeroot debian/rules install)
! 37: (cd work/openxm-${VERSION}; fakeroot dpkg-buildpackage)
! 38:
! 39: build : clean
! 40: make build-noclean
! 41:
! 42: copy-to-ftp-area:
! 43: -scp work/openxm-*.deb ${WHO}:${FTP_AREA}
! 44: -scp work/openxm_*.dsc ${WHO}:${FTP_AREA}
! 45: -scp work/openxm_*.changes ${WHO}:${FTP_AREA}
! 46:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>