File: rules

package info (click to toggle)
didder 1.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 244 kB
  • sloc: makefile: 58
file content (16 lines) | stat: -rwxr-xr-x 411 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

LDFLAGS := -X main.version=$(DEB_VERSION_UPSTREAM)
LDFLAGS += -X main.commit=$(DEB_VERSION)
LDFLAGS += -X main.builtBy=dh-golang

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

override_dh_auto_build:
	dh_auto_build --builddirectory=_build --buildsystem=golang -- -ldflags '$(LDFLAGS)'

override_dh_auto_install:
	dh_auto_install -- --no-source