1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
#!/usr/bin/make -f
#export DH_GOLANG_EXCLUDES := test vendor
BUILD_DIR := obj-$(DEB_BUILD_GNU_TYPE)
export PATH := $(CURDIR)/$(BUILD_DIR)/bin:$(PATH)
# Do not install .gitignore
export DH_GOLANG_EXCLUDES := .gitignore
# skip using dh_auto_test
#export DEB_BUILD_OPTIONS := nocheck
# for dh_auto_test to find all tests that `go test -v ./...` needs
export DH_GOLANG_INSTALL_EXTRA := test
# for list0E testing under docker
export SHELL=/bin/bash
override_dh_auto_build:
dh_auto_build
ronn cmd/easygen/easygen.1.ronn
override_dh_clean:
rm -f cmd/easygen/easygen.1 cmd/easygen/easygen.1.html
dh_clean
%:
dh $@ --buildsystem=golang --with=golang
|