File: rules

package info (click to toggle)
elvish 0.19.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,376 kB
  • sloc: javascript: 188; sh: 187; python: 89; makefile: 78; xml: 9
file content (24 lines) | stat: -rwxr-xr-x 631 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

VESRION_SUFFIX := $(DEB_VENDOR)$(subst $(DEB_VERSION_EPOCH_UPSTREAM),,$(DEB_VERSION))
GOLDFLAGS := -X src.elv.sh/pkg/buildinfo.BuildVariant=$(VESRION_SUFFIX)

export ELVISH_TEST_TIME_SCALE := 20
export DH_GOLANG_EXCLUDES := \
	$(filter-out cmd/elvish,$(wildcard cmd/*)) \
	website examples \
	pkg/md/mdrun
export DH_GOLANG_INSTALL_EXTRA := \
	$(wildcard */*/*.elv */*/*/*.elv) \
	pkg/md/spec/spec.json

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

override_dh_auto_build:
	 dh_auto_build -- -ldflags "$(GOLDFLAGS)"

override_dh_auto_install:
	dh_auto_install -- --no-source