| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | export DEB_BUILD_MAINT_OPTIONS=hardening=+all |
| 4 | |
| 5 | %: |
| 6 | dh $@ |
| 7 | |
| 8 | execute_before_dh_autoreconf: |
| 9 | mkdir -p src/config |
| 10 | |
| 11 | override_dh_auto_configure: |
| 12 | dh_auto_configure -- --enable-shared |
| 13 | |
| 14 | execute_after_dh_auto_build: |
| 15 | # build documentation |
| 16 | ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS))) |
| 17 | python3 -m markdown doc/ffms2-api.md \ |
| 18 | -x fenced_code -x toc >doc/ffms2-api.html |
| 19 | endif |
| 20 | |
| 21 | override_dh_auto_test: |
| 22 | # tests requires to download samples |
| 23 | |
| 24 | override_dh_installchangelogs: |
| 25 | dh_installchangelogs doc/ffms2-changelog.md |