From ff5b5d047fc3e237ad49e0673ee30d380505d511 Mon Sep 17 00:00:00 2001 From: damiano Date: Mon, 28 Dec 1998 12:35:34 +0000 Subject: Correction sur debian/rules et src/Makefile --- debian/rules | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'debian') diff --git a/debian/rules b/debian/rules index 53a7e3e..6b5213a 100755 --- a/debian/rules +++ b/debian/rules @@ -4,8 +4,10 @@ package=ivy-c -VERSION=`sed -n 's/.*(\([^)]*\)).*/\1/p' debian/changelog | head -1 | sed -n 's/\([0-9]*\)\..*/\1/p'` -MAJOR_MINOR=`sed -n 's/.*(\([^)]*\)).*/\1/p' debian/changelog | head -1 | sed -n 's/[0-9]*\.\([0-9\.]*\).*/\1/p'` +SED_COMMAND_VERSION='s/.*(\([^)]*\)).*/\1/p' +VERSION := $(shell sed -n $(SED_COMMAND_VERSION) debian/changelog | head -1 | sed -n 's/\([0-9]*\)\..*/\1/p') +SED_COMMAND_MAJOR_MINOR='s/.*(\([^)]*\)).*/\1/p' +MAJOR_MINOR := $(shell sed -n $(SED_COMMAND_MAJOR_MINOR) debian/changelog | head -1 | sed -n 's/[0-9]*\.\([0-9\.]*\).*/\1/p') build: $(checkdir) @@ -33,7 +35,7 @@ binary-arch: checkroot build install -d debian/tmp cd debian/tmp && install -d `cat ../dirs` - cd src && make install DESTDIR=`pwd`/../debian/tmp VERSION=$(VERSION) MAJOR=$(MAJOR) MINOR=$MINOR + cd src && make install DESTDIR=`pwd`/../debian/tmp VERSION=$(VERSION) MAJOR_MINOR=$(MAJOR_MINOR) debstd -rmdir debian/tmp/usr/include -- cgit v1.1