Commit 835cf986 authored by Sascha Steinbiss's avatar Sascha Steinbiss
Browse files

build on non-64bit archs

parent 7475fe3e
Loading
Loading
Loading
Loading
+14 −4
Original line number Diff line number Diff line
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

DH_VERBOSE := 1
export LC_ALL=C.UTF-8
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export LIBVMATCH_PKG_VERSION=$(shell apt-cache policy libvmatch-dev | grep Installed | cut -f2 -d: | cut -c2-)

DARCH:=$(shell dpkg-architecture | fgrep DEB_TARGET_ARCH= | cut -f 2 -d'=')
BITS:=$(shell dpkg-architecture | fgrep DEB_TARGET_ARCH_BITS= | cut -f 2 -d'=')

ifeq ($(BITS),64)
  64BIT:=yes
else
  64BIT:=no
endif
%:
	dh $@

@@ -15,8 +25,8 @@ override_dh_auto_clean:
	rm -f debian/*substvars

override_dh_auto_build:
	make licensemanager=no opt=yes 64bit=yes
	make licensemanager=no opt=yes 64bit=yes train
	make licensemanager=no opt=yes 64bit=$(64BIT)
	make licensemanager=no opt=yes 64bit=$(64BIT) train

override_dh_auto_install:
	mv bin/bssm debian/bssm
@@ -25,7 +35,7 @@ override_dh_auto_install:

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	make licensemanager=no 64bit=yes test
	make licensemanager=no 64bit=$(64BIT) test
endif

override_dh_installman: