File: rules

package info (click to toggle)
elvish 0.15.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,524 kB
  • sloc: javascript: 171; sh: 153; makefile: 71; xml: 9
file content (24 lines) | stat: -rwxr-xr-x 646 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

GOPKG := github.com/elves/elvish
GOLDFLAGS := \
	-X $(GOPKG)/pkg/buildinfo.Version=$(DEB_VERSION)

export PATH := $(CURDIR)/_build/bin:$(PATH)
export ELVISH_TEST_TIME_SCALE := 20
export DH_GOLANG_EXCLUDES := website
export DEB_VERSION_UPSTREAM

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

override_dh_auto_build:
	DH_GOLANG_BUILDPKG="$(GOPKG)/website/cmd/elvdoc $(GOPKG)/cmd/withweb/elvish" \
	  DH_GOLANG_EXCLUDES="" dh_auto_build -- -ldflags "$(GOLDFLAGS)"
	./debian/genman.sh

override_dh_auto_install:
	rm -vf _build/bin/elvdoc
	dh_auto_install -- --no-source