| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 | DPKG_EXPORT_BUILDFLAGS = 1 |
| 5 | include /usr/share/dpkg/buildflags.mk |
| 6 | |
| 7 | %: |
| 8 | dh $@ |
| 9 | |
| 10 | override_dh_auto_configure: |
| 11 | dh_auto_configure -- -DDPP_USE_EXTERNAL_JSON=ON -DRUN_LDCONFIG=OFF -DDPP_BUILD_TEST=OFF |
| 12 | |
| 13 | # Don't build docs if nodoc build is run |
| 14 | execute_after_dh_auto_build: |
| 15 | ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),) |
| 16 | doxygen |
| 17 | endif |
| 18 | |
| 19 | execute_after_dh_auto_clean: |
| 20 | rm -rf docs |
| 21 | rm -f mlspp/include/namespace.h |
| 22 | |
| 23 | override_dh_auto_test: |
| 24 | # Skip tests; almost all require network, and many require a Discord bot token. |