signald-go/debian/rules
2021-02-03 02:30:14 -08:00

17 lines
No EOL
508 B
Makefile
Executable file

#!/usr/bin/make -f
export DH_GOLANG_EXCLUDES := tools/
PKG := gitlab.com/signald/signald-go
GO_LDFLAGS += -X $(PKG)/cmd/signaldctl/common.Version=$(DEB_VERSION)
GO_LDFLAGS += -X $(PKG)/cmd/signaldctl/common.Branch=$(shell git rev-parse HEAD)
GO_LDFLAGS += -X $(PKG)/cmd/signaldctl/common.Commit=$(CI_BUILD_REF)
override_dh_auto_install:
dh_auto_install -- --no-source
%:
dh $@ --buildsystem=golang --with=golang --with bash-completion
override_dh_auto_build:
dh_auto_build -- -ldflags '$(GO_LDFLAGS)'