Streamlining rules file.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-09 07:39:36 +01:00
parent c4f6aeb7f9
commit 8bde6e2fd6
Signed by: daniel
GPG key ID: FBB4F0E80A80222F

39
debian/rules vendored
View file

@ -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
include /usr/share/dpkg/architecture.mk
ifeq ($(DEB_BUILD_ARCH),armel)
PLATFORM = --platform=armv7l
endif
%:
dh ${@}
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)
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
%:
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 $@
.PHONY: build
$(MAKE) -j1 check