| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 | |
| 5 | %: |
| 6 | dh $@ |
| 7 | |
| 8 | override_dh_auto_configure: |
| 9 | dh_auto_configure -- \ |
| 10 | -Dglaze_DEVELOPER_MODE=OFF |
| 11 | |
| 12 | execute_after_dh_auto_build: |
| 13 | ifeq ($(filter nodoc,$(DEB_BUILD_OPTIONS)),) |
| 14 | mkdocs build -d docs.debian/html |
| 15 | find docs.debian -type f -exec sed -i 's|<link [^>]*href="http[^>]*>||g' '{}' ';' |
| 16 | find docs.debian -type f -exec sed -i -E 's|<img[^>]+src="https?://[^"]+"[^>]*/>||g' '{}' ';' |
| 17 | endif |