-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (52 loc) · 1.59 KB
/
Makefile
File metadata and controls
58 lines (52 loc) · 1.59 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
-include .env.mk
include make/vars.mk
include make/dev.mk
include make/metadata.mk
include make/tool.mk
include make/helpers.mk
include make/sbom.mk
include make/ghcr.mk
check_defined = \
$(strip $(foreach 1,$1, \
$(call __check_defined,$1,$(strip $(value 2)))))
__check_defined = \
$(if $(value $1),, \
$(error Undefined $1$(if $2, ($2))))
.PHONY:
all: $(TOOLS_RAW)
.PHONY:
info: ; $(info $(M) Runtime info...)
@echo "BUILDKIT_COLORS: $(BUILDKIT_COLORS)"
@echo "NO_COLOR: $(NO_COLOR)"
@echo "GIT_BRANCH: $(GIT_BRANCH)"
@echo "GIT_COMMIT_SHA: $(GIT_COMMIT_SHA)"
@echo "VERSION: $(VERSION)"
@echo "DOCKER_TAG: $(DOCKER_TAG)"
@echo "DOCKER_NETWORK: $(DOCKER_NETWORK)"
@echo "OWNER: $(OWNER)"
@echo "PROJECT: $(PROJECT)"
@echo "REGISTRY: $(REGISTRY)"
@echo "REPOSITORY_PREFIX: $(REPOSITORY_PREFIX)"
@echo "TOOLS_RAW: $(TOOLS_RAW)"
@echo "SUPPORTED_ARCH: $(SUPPORTED_ARCH)"
@echo "SUPPORTED_ALT_ARCH: $(SUPPORTED_ALT_ARCH)"
@echo "ARCH: $(ARCH)"
@echo "ALT_ARCH: $(ALT_ARCH)"
.PHONY:
clean: ## Remove all temporary files
@set -o errexit; \
rm -f metadata.json; \
rm -rf helper; \
for TOOL in $(TOOLS_RAW); do \
rm -f \
$(TOOLS_DIR)/$${TOOL}/manifest.json \
$(TOOLS_DIR)/$${TOOL}/Dockerfile \
$(TOOLS_DIR)/$${TOOL}/build.log \
$(TOOLS_DIR)/$${TOOL}/sbom.json; \
done
.PHONY:
list: ## List available tools
@echo "$(TOOLS_RAW)"
.PHONY:
$(addsuffix --show,$(ALL_TOOLS_RAW)):%--show: $(TOOLS_DIR)/$* ## Display directory contents
@ls -l $(TOOLS_DIR)/$*