Debian Codegraph @

Makefile

raw symbols SCIP
1 ifneq (, $(BUILDX_BIN))
2 export BUILDX_CMD = $(BUILDX_BIN)
3 else ifneq (, $(shell docker buildx version))
4 export BUILDX_CMD = docker buildx
5 else ifneq (, $(shell which buildx))
6 export BUILDX_CMD = $(which buildx)
7 endif
8
9 export BUILDX_CMD ?= docker buildx
10
11 BAKE_TARGETS := binaries binaries-cross lint lint-gopls validate-vendor validate-docs validate-authors
12
13 .PHONY: all
14 all: binaries
15
16 .PHONY: build
17 build:
18 ./hack/build
19
20 .PHONY: shell
21 shell:
22 ./hack/shell
23
24 .PHONY: $(BAKE_TARGETS)
25 $(BAKE_TARGETS):
26 $(BUILDX_CMD) bake $@
27
28 .PHONY: install
29 install: binaries
30 mkdir -p ~/.docker/cli-plugins
31 install bin/build/buildx ~/.docker/cli-plugins/docker-buildx
32
33 .PHONY: release
34 release:
35 ./hack/release
36
37 .PHONY: validate-all
38 validate-all: lint test validate-vendor validate-docs
39
40 .PHONY: test
41 test:
42 ./hack/test
43
44 .PHONY: test-unit
45 test-unit:
46 TESTPKGS=./... SKIP_INTEGRATION_TESTS=1 ./hack/test
47
48 .PHONY: test
49 test-integration:
50 TESTPKGS=./tests ./hack/test
51
52 .PHONY: test-driver
53 test-driver:
54 ./hack/test-driver
55
56 .PHONY: vendor
57 vendor:
58 ./hack/update-vendor
59
60 .PHONY: docs
61 docs:
62 ./hack/update-docs
63
64 .PHONY: authors
65 authors:
66 $(BUILDX_CMD) bake update-authors
67
68 .PHONY: mod-outdated
69 mod-outdated:
70 $(BUILDX_CMD) bake mod-outdated