| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | #export DH_VERBOSE = 1 |
| 4 | export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 5 | export PYBUILD_NAME = phat |
| 6 | |
| 7 | # To avoid autodetecting upstream's CMakeFile, which doesn't build the |
| 8 | # Python extension. |
| 9 | export PYBUILD_SYSTEM = distutils |
| 10 | |
| 11 | %: |
| 12 | dh $@ --buildsystem=cmake --builddirectory=build |
| 13 | dh $@ --with python3 --buildsystem=pybuild |
| 14 | |
| 15 | execute_after_dh_auto_build: build/phat.1 |
| 16 | |
| 17 | execute_before_dh_auto_clean: |
| 18 | rm -f build/phat.1 |
| 19 | |
| 20 | build/phat.1: debian/phat.1.scd |
| 21 | scdoc < $< > $@ |