File: rules

package info (click to toggle)
packer 1.3.4%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 8,324 kB
  • sloc: python: 619; sh: 557; makefile: 111
file content (24 lines) | stat: -rwxr-xr-x 939 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

export DH_GOLANG_INSTALL_EXTRA := $(shell find . -name test-fixtures) \
                                  $(wildcard builder/azure/common/template/*approved*) \
                                  $(wildcard builder/azure/arm/*approved*)
export DH_GOLANG_EXCLUDES := plugin/example scripts \
                             builder/azure builder/ncloud builder/oneandone builder/oracle \
                             builder/profitbricks builder/scaleway builder/triton \
                             builder/tencentcloud builder/hcloud
export HOME := $(shell mktemp -d)

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

override_dh_auto_configure:
	cp -rvT debian/vendor ./vendor
ifneq (,$(filter $(DEB_HOST_ARCH), mips mipsel))
	# mips mipsel are too slow to run these tests
	rm -v builder/googlecompute/step_create_windows_password_test.go
endif
	dh_auto_configure

override_dh_auto_install:
	dh_auto_install -- --no-source