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

File: [local] / OpenXM / misc / packages / Linux / Debian / Makefile (download)

Revision 1.4, Fri Feb 28 09:06:19 2003 UTC (21 years, 4 months ago) by takayama
Branch: MAIN
CVS Tags: RELEASE_1_2_2
Changes since 1.3: +5 -1 lines

Added a note to build *.deb packages.

# $OpenXM: OpenXM/misc/packages/Linux/Debian/Makefile,v 1.4 2003/02/28 09:06:19 takayama Exp $

## You need the following packages to build *.deb
## apt-get install fakeroot
## apt-get install debhelper

VERSION=1.2.1
## configuration only for committers
WHO=taka@orange
FTP_AREA=/export/home01/ftp/pub/OpenXM/${VERSION}
TAR_WORK=$(HOME)/tmp

RM=rm

usage :
	@echo "Usage (Makefile for *.deb):"
	@echo "clean"
	@echo "build, build-noclean"
	@echo "build-main"
	@echo "copy-to-ftp-area"

clean:
	${RM} -rf work
#	(cd ../../Generic/openxm ; make clean-work )

build-noclean:
	-mkdir  work
	(cd ../../Generic/openxm ; make tar-ball VERSION=${VERSION})
	(cd work ; tar xzvf ${TAR_WORK}/openxm-${VERSION}.tar.gz)
	-(cd work/openxm-${VERSION} ; ln -s ../../debian)
	make build-main
build-main: 
## Start of build
	(cd work/openxm-${VERSION}; fakeroot debian/rules build)
	(cd work/openxm-${VERSION}; fakeroot debian/rules install)
	(cd work/openxm-${VERSION}; fakeroot dpkg-buildpackage)

build :  clean 
	make build-noclean

copy-to-ftp-area:
	-scp work/openxm-*.deb ${WHO}:${FTP_AREA}
	-scp work/openxm_*.dsc ${WHO}:${FTP_AREA}
	-scp work/openxm_*.changes ${WHO}:${FTP_AREA}