From 02b7470845a0e3fbda098fa7eb64f6c7be544a70 Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Mon, 5 Jan 2015 22:52:57 -0800 Subject: [PATCH] debian/rules: Define some variables Signed-off-by: Jordan Justen --- debian/rules | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index b1efd501d7..83694efe19 100755 --- a/debian/rules +++ b/debian/rules @@ -4,10 +4,15 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +RUST_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ' | cut -f 1 -d '-' | cut -f 1-2 -d .) +RUST_PREFIX := usr +DEB_DESTDIR := $(CURDIR)/debian/rust +RUST_TMP_PREFIX := $(DEB_DESTDIR)/$(RUST_PREFIX) + # These are the normal build flags COMMON_FLAGS = \ --disable-manage-submodules \ - --prefix=/usr + --prefix=/$(RUST_PREFIX) # TODO # These flags will be used to avoid external