debian/rules: Define some variables

Signed-off-by: Jordan Justen <jljusten@gmail.com>
This commit is contained in:
Jordan Justen 2015-01-05 22:52:57 -08:00
parent ef10207113
commit 02b7470845

7
debian/rules vendored
View File

@ -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