Streamlining rules file.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
c4f6aeb7f9
commit
8bde6e2fd6
1 changed files with 15 additions and 24 deletions
39
debian/rules
vendored
39
debian/rules
vendored
|
@ -1,31 +1,22 @@
|
||||||
#!/usr/bin/make -f
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
PLATFORM :=
|
include /usr/share/dpkg/architecture.mk
|
||||||
$(call lazy,DEB_HOST_ARCH,$$(shell dpkg-architecture -qDEB_HOST_ARCH))
|
|
||||||
ifneq (,$(findstring armhf,$(DEB_HOST_ARCH)))
|
ifeq ($(DEB_BUILD_ARCH),armel)
|
||||||
PLATFORM += --platform=armv7l
|
PLATFORM = --platform=armv7l
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh ${@}
|
||||||
|
|
||||||
override_dh_auto_configure:
|
override_dh_auto_configure:
|
||||||
./configure \
|
dh_auto_configure -- \
|
||||||
--includedir=/usr/include \
|
--prefix=/usr \
|
||||||
--libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
|
--libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
|
||||||
--mandir=/usr/share/man \
|
--includedir=/usr/include \
|
||||||
--prefix=/usr \
|
--mandir=/usr/share/man \
|
||||||
--cores=2 \
|
--cores=2 \
|
||||||
--disable-sse \
|
--disable-sse $(PLATFORM)
|
||||||
$(PLATFORM)
|
|
||||||
|
|
||||||
override_dh_auto_test:
|
override_dh_auto_test:
|
||||||
make -j1 check
|
$(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
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue