File: rules

package info (click to toggle)
golang-github-containers-image 5.10.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,340 kB
  • sloc: makefile: 91; sh: 43
file content (22 lines) | stat: -rwxr-xr-x 569 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
#!/usr/bin/make -f

# disable optional components
TAGS="containers_image_ostree"

export DH_GOLANG_EXCLUDES := openshift
export DH_GOLANG_INSTALL_EXTRA := $(shell find . -type d -name 'fixtures') $(wildcard docs/*.json)

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

override_dh_auto_build:
	dh_auto_build -O--buildsystem=golang -- -tags $(TAGS)
#	$(MAKE) docs

override_dh_auto_install:
	dh_auto_install --buildsystem=golang
	make install-docs DESTDIR=$(CURDIR)/debian/golang-github-containers-image

override_dh_auto_test:
	# TODO: investiate failures
	-dh_auto_test