1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
#!/usr/bin/make -f
%:
dh $@
ifeq ($(filter nodoc,$(DEB_BUILD_OPTIONS)),)
execute_after_dh_auto_build:
mkdir -p html/img
ln doc/img/*.png html/img/
# replace .md links with .html links
markdown -o html/index.html README.md
sed -i -e 's/\(a href="\)doc\/\([^"]\+\)\(.md">\)/\1\2.html">/' html/index.html
for F in doc/*.md; do markdown -o html/$$(basename -s .md $$F).html $$F;done
endif
override_dh_installchangelogs:
dh_installchangelogs NEWS
execute_after_dh_auto_clean:
rm -rf html
override_dh_auto_test:
# Don't run the tests. Upstream explains why they don't work here:
# https://blog.flameeyes.eu/2014/10/the-subtlety-of-modern-cpus-or-the-search-for-the-phantom-bug
|