ck/debian/rules
Daniel Baumann 05c588e9d7
Adding debian version 0.6.0-2.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-09 07:36:00 +01:00

31 lines
621 B
Makefile
Executable file

#!/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)
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