| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | # Uncomment this to turn on verbose mode. |
| 4 | #export DH_VERBOSE = 1 |
| 5 | |
| 6 | export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 7 | |
| 8 | %: |
| 9 | dh $@ |
| 10 | |
| 11 | override_dh_auto_configure: |
| 12 | ifeq (,$(findstring nocheck,$(DEB_BUILD_PROFILES))) |
| 13 | dh_auto_configure -- -DWITH_TESTS=ON -DBUILD_SHARED_LIBS=ON |
| 14 | else |
| 15 | dh_auto_configure -- -DWITH_TESTS=OFF -DBUILD_SHARED_LIBS=ON |
| 16 | endif |
| 17 | |
| 18 | override_dh_auto_test: |
| 19 | ifeq (,$(findstring nocheck,$(DEB_BUILD_PROFILES))) |
| 20 | ./*/run_tests |
| 21 | endif |