2021-01-30 04:26:54 +00:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
2021-01-30 09:46:41 +00:00
|
|
|
export DH_GOLANG_EXCLUDES := tools/
|
|
|
|
|
2021-01-31 06:21:18 +00:00
|
|
|
PKG := gitlab.com/signald/signald-go
|
2021-08-07 20:43:56 +00:00
|
|
|
GO_LDFLAGS += -X $(PKG)/cmd/signaldctl/common.Version=$(./version.sh)
|
2021-02-27 20:29:07 +00:00
|
|
|
GO_LDFLAGS += -X $(PKG)/cmd/signaldctl/common.Branch=$(shell debian/get-branch.sh)
|
2021-01-31 06:21:18 +00:00
|
|
|
GO_LDFLAGS += -X $(PKG)/cmd/signaldctl/common.Commit=$(CI_BUILD_REF)
|
|
|
|
|
2021-01-30 04:26:54 +00:00
|
|
|
override_dh_auto_install:
|
|
|
|
dh_auto_install -- --no-source
|
|
|
|
|
|
|
|
%:
|
2021-02-03 05:03:02 +00:00
|
|
|
dh $@ --buildsystem=golang --with=golang --with bash-completion
|
2021-01-31 06:21:18 +00:00
|
|
|
|
|
|
|
override_dh_auto_build:
|
|
|
|
dh_auto_build -- -ldflags '$(GO_LDFLAGS)'
|