From df80b649f06e3b48e4a3f0d74d16b39eea32e6e4 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 23 Jul 2021 13:50:21 +0200 Subject: Streamlining rules file. Signed-off-by: Daniel Baumann --- debian/rules | 39 +++++++++++++++------------------------ 1 file changed, 15 insertions(+), 24 deletions(-) (limited to 'debian') diff --git a/debian/rules b/debian/rules index 468baa9..ee6a3be 100755 --- a/debian/rules +++ b/debian/rules @@ -1,31 +1,22 @@ #!/usr/bin/make -f -PLATFORM := -$(call lazy,DEB_HOST_ARCH,$$(shell dpkg-architecture -qDEB_HOST_ARCH)) -ifneq (,$(findstring armhf,$(DEB_HOST_ARCH))) - PLATFORM += --platform=armv7l -endif - -override_dh_auto_configure: - ./configure \ - --includedir=/usr/include \ - --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \ - --mandir=/usr/share/man \ - --prefix=/usr \ - --cores=2 \ - --disable-sse \ - $(PLATFORM) +include /usr/share/dpkg/architecture.mk -override_dh_auto_test: - make -j1 check +ifeq ($(DEB_BUILD_ARCH),armel) + PLATFORM = --platform=armv7l +endif %: - dh $@ - -# The build target must not be empty. Sadly because of how make -# works, we have do duplicate the target in this case. -build: - dh $@ + dh ${@} -.PHONY: build +override_dh_auto_configure: + dh_auto_configure -- \ + --prefix=/usr \ + --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \ + --includedir=/usr/include \ + --mandir=/usr/share/man \ + --cores=2 \ + --disable-sse $(PLATFORM) +override_dh_auto_test: + $(MAKE) -j1 check -- cgit v1.2.3