From: Mark Wooding Date: Thu, 6 Jul 2017 10:15:05 +0000 (+0100) Subject: debian/rules: Capture common options in a makefile variable. X-Git-Tag: 2.4.2~35 X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/commitdiff_plain/f53c51136077f179d2736f4e8836ba2725e84abd debian/rules: Capture common options in a makefile variable. --- diff --git a/debian/rules b/debian/rules index d93449af..a7ae1b01 100755 --- a/debian/rules +++ b/debian/rules @@ -1,7 +1,8 @@ #! /usr/bin/make -f -%:; dh $@ --parallel -Bdebian/build +DH_OPTIONS = --parallel -Bdebian/build +%:; dh $@ $(DH_OPTIONS) ## Test both with and without CPU-specific optimizations. override_dh_auto_test: - dh_auto_test --parallel -Bdebian/build - CATACOMB_CPUFEAT="-*" dh_auto_test --parallel -Bdebian/build + dh_auto_test $(DH_OPTIONS) + CATACOMB_CPUFEAT="-*" dh_auto_test $(DH_OPTIONS)