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
|