extract version from environment

This commit is contained in:
Dietmar Maurer
2018-12-05 14:38:37 +01:00
parent 95b492add8
commit 4b26195c6a
4 changed files with 16 additions and 12 deletions

View File

@ -5,15 +5,16 @@ PKGREL=1
ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
GITVERSION:=$(shell git rev-parse HEAD)
export PROXMOX_PKG_VERSION=${PKGVER}
export PROXMOX_PKG_RELEASE=${PKGREL}
export PROXMOX_PKG_REPOID=${GITVERSION}
DEB=${PACKAGE}_${PKGVER}-${PKGREL}_${ARCH}.deb
DESTDIR=
all: target/release/api-test-server
target/release/api-test-server:
cargo build --release
all:
cargo build
.PHONY: deb
deb ${DEB}:
@ -28,6 +29,7 @@ deb ${DEB}:
distclean: clean
clean:
make -C www clean
cargo clean
rm -rf *.deb *.buildinfo *.changes build
find . -name '*~' -exec rm {} ';'