Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 DEB_VERSION := $(shell dpkg-parsechangelog -SVersion)
4 export GOFLAGS := -ldflags=-X=main.Version=$(DEB_VERSION)
5
6 %:
7 dh $@ --buildsystem=golang --with=golang
8
9 override_dh_auto_clean:
10 dh_auto_clean
11 [ ! -f doc/man/debos.1.upstream ] || mv doc/man/debos.1.upstream doc/man/debos.1
12
13 override_dh_auto_test:
14 # Disable auto tests at build time
15 # debos requires access to /dev/kvm for tests
16 :
17
18 ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
19 override_dh_auto_build:
20 dh_auto_build
21 mv doc/man/debos.1 doc/man/debos.1.upstream
22 cd doc/man && ./create_manpage.sh
23 endif
24
25 override_dh_auto_install:
26 dh_auto_install -- --no-source