chiark / gitweb /
debian/rules: Capture common options in a makefile variable.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 6 Jul 2017 10:15:05 +0000 (11:15 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 6 Jul 2017 10:15:05 +0000 (11:15 +0100)
debian/rules

index d93449afbc5fcdda46bac0ba2bf9aa0b053a17d2..a7ae1b01debf84c4284f1c3037186bf37531314f 100755 (executable)
@@ -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)