File: rules

package info (click to toggle)
golang-golang-x-sys 0.0~git20161122.0.30237cf-1~bpo8%2B2
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 4,568 kB
  • sloc: perl: 1,152; sh: 680; asm: 332; ansic: 37; makefile: 11
file content (18 lines) | stat: -rwxr-xr-x 663 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

# Do not include plan9 and windows packages that are not relevant to Debian. In
# particular, the plan9 package makes build fail when using gccgo.
export DH_GOLANG_EXCLUDES := plan9 windows
BUILDDIR := $(CURDIR)/build

%:
	dh $@ --buildsystem=golang --with=golang --builddirectory=$(BUILDDIR)

override_dh_auto_configure:
	dh_auto_configure
	# Gccgo uses "mipsn64" for mips64el, instead of "mips64" like gc does.
	cd $(BUILDDIR)/src/golang.org/x/sys/unix/; \
	for i in errors syscall sysnum types; do \
	    sed 's;^// +build mips64,linux;// +build mipsn64,linux;' \
                < z$${i}_linux_mips64.go > z$${i}_linux_mipsn64.go; \
	done