#!/usr/bin/make -f %: dh $@ execute_after_dh_auto_build: # generate a manpage using the newly built glow's man command _build/bin/v2 man > _build/glow.1 override_dh_auto_install: dh_auto_install -- --no-source # With v2 import path, dh-golang installs the binary as 'v2'; rename it back mv -v debian/tmp/usr/bin/v2 debian/tmp/usr/bin/glow