File: rules

package info (click to toggle)
golang-go.crypto 1%3A0.0~git20170407.0.55a552f%2BREALLY.0.0~git20161012.0.5f31782-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch, stretch-backports
  • size: 3,452 kB
  • sloc: asm: 5,761; ansic: 152; makefile: 11
file content (24 lines) | stat: -rwxr-xr-x 774 bytes parent folder | download | duplicates (4)
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

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1

# Since dh-golang ignores .s files (assembler) by default, we need to
# instruct it to copy everything for now.
# Also, several tests include "testdata" fixtures that are necessary for the
# tests to run.
export DH_GOLANG_INSTALL_ALL=1

# DH_GOPKG is the upstream path which you would normally “go get”.
# Using it allows us to build applications without patching locations.
export DH_GOPKG := golang.org/x/crypto

override_dh_auto_configure:
	dh_auto_configure -O--buildsystem=golang
	rm -f obj-*/src/${DH_GOPKG}/.gitignore
	rm -fr obj-*/src/${DH_GOPKG}/.git
	rm -fr obj-*/src/${DH_GOPKG}/.gitattributes
	rm -f obj-*/src/${DH_GOPKG}/[A-Z]*

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