File: rules

package info (click to toggle)
debos 1.1.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 596 kB
  • sloc: sh: 102; makefile: 17
file content (26 lines) | stat: -rwxr-xr-x 641 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/make -f

DEB_VERSION := $(shell dpkg-parsechangelog -SVersion)
export GOFLAGS := -ldflags=-X=main.Version=$(DEB_VERSION)

%:
	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