File: rules

package info (click to toggle)
duf 0.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 384 kB
  • sloc: makefile: 7
file content (12 lines) | stat: -rwxr-xr-x 311 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/make -f

export VERSION=$(shell dpkg-parsechangelog --show-field Version | cut -d- -f1)

%:
	dh $@ --builddirectory=_build --buildsystem=golang --with=golang

override_dh_auto_install:
	dh_auto_install -- --no-source

override_dh_auto_build:
	dh_auto_build -- -ldflags "-X 'main.Version=${VERSION}'"