buildsys: use dpkg-architecture
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 10 Feb 2017 12:57:59 +0000 (13:57 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 10 Feb 2017 12:57:59 +0000 (13:57 +0100)
Makefile

index f309eb3..cbd8410 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ DOCDIR=${PREFIX}/share/doc
 MAN1DIR=${MANDIR}/man1/
 PERLDIR=${PREFIX}/share/perl5
 
-ARCH=amd64
+ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
 GITVERSION:=$(shell cat .git/refs/heads/master)
 
 DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb