Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 include /usr/share/dpkg/pkg-info.mk
3
4 export DH_VERBOSE=1
5
6 BUILDDIR := $(CURDIR)/build
7
8 BRANCH := debian/sid
9 USER := team+pkg-go@tracker.debian.org
10 BUILD_DATE = $(shell date --utc --date='@$(SOURCE_DATE_EPOCH)' \
11 +%Y%m%d-%H:%M:%S)
12 GO_VERSION = $(shell go version | sed 's/go version \(\S*\).*/\1/')
13 BUILDFLAGS = -ldflags \
14 " -X main.Version=$(DEB_VERSION_UPSTREAM) \
15 -X main.Revision=$(DEB_VERSION) \
16 -X main.Branch=$(BRANCH) \
17 -X main.BuildUser=$(USER) \
18 -X main.BuildDate=$(BUILD_DATE) \
19 -X main.GoVersion=$(GO_VERSION)"
20
21 %:
22 dh $@ --buildsystem=golang --with=golang --builddirectory=$(BUILDDIR)
23
24 BINNAME := $(DEB_SOURCE)
25
26 override_dh_auto_build:
27 dh_auto_build -- $(BUILDFLAGS)
28 # Rename the binary to match the Debian package name.
29 mv -v $(BUILDDIR)/bin/exporter_exporter $(BUILDDIR)/bin/$(BINNAME)
30
31 override_dh_auto_install:
32 dh_auto_install -- --no-source