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

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

Revision 1.1, Sun Jun 20 08:25:06 2004 UTC (19 years, 11 months ago) by takayama
Branch: MAIN
CVS Tags: R_1_3_1-2, RELEASE_1_3_1_13b, RELEASE_1_2_3_12, KNOPPIX_2006, HEAD, DEB_REL_1_2_3-9

Debian package of OpenXM which is splited into free (BSD, GPL, LGPL) and
non -free (FLL).
Debian-non-free is already tested, but Debian-free has not yet tested.

# $OpenXM: OpenXM/misc/packages/Linux/Debian-non-free/Makefile,v 1.1 2004/06/20 08:25:06 takayama Exp $

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

## How to  debug?
## ex1.
##    cd work/openxm-head ; fakeroot make -f debian/rules build

VERSION=head
## configuration only for committers
WHO=$(USER)@orange2
FTP_AREA=/home/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

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 -b -B)

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}

clean-tar:
	(cd ../../Generic/openxm ; rm -f .*done)