diff options
-rw-r--r-- | debian/clean | 1 | ||||
-rw-r--r-- | debian/control | 1 | ||||
-rwxr-xr-x | debian/rules | 11 |
3 files changed, 13 insertions, 0 deletions
diff --git a/debian/clean b/debian/clean new file mode 100644 index 0000000..50b2a10 --- /dev/null +++ b/debian/clean @@ -0,0 +1 @@ +doc/man/debos.md diff --git a/debian/control b/debian/control index 9c3aedb..1a53d0c 100644 --- a/debian/control +++ b/debian/control @@ -17,6 +17,7 @@ Build-Depends: golang-go-flags-dev, golang-gopkg-freddierice-go-losetup.v1-dev, golang-yaml.v2-dev, + pandoc <!nodoc>, Standards-Version: 4.5.0 Rules-Requires-Root: no Homepage: https://github.com/go-debos/debos diff --git a/debian/rules b/debian/rules index fe01e8a..3d9d456 100755 --- a/debian/rules +++ b/debian/rules @@ -3,10 +3,21 @@ %: dh $@ --buildsystem=golang --with=golang +override_dh_auto_clean: + dh_auto_clean + [ -f doc/man/debos.1.upstream ] && mv doc/man/debos.1.upstream doc/man/debos.1 + override_dh_auto_test: # Disable auto tests at build time # debos requires access to /dev/kvm for tests : +ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES))) +override_dh_auto_build: + dh_auto_build + mv doc/man/debos.1 doc/man/debos.1.upstream + cd doc/man && ./create_manpage.sh +endif + override_dh_auto_install: dh_auto_install -- --no-source |