-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMakefile
51 lines (42 loc) · 1.17 KB
/
Makefile
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
GOBIN ?= ${GOPATH}/bin
IMG ?= quay.io/konveyor/tackle2-addon-windup:latest
all: cmd
fmt:
go fmt ./...
vet:
go vet ./...
docker-build:
docker build -t ${IMG} .
podman-build:
podman build -t ${IMG} .
cmd: fmt vet
go build -ldflags="-w -s" -o bin/addon github.com/konveyor/tackle2-addon-windup/cmd
.PHONY: start-minikube
START_MINIKUBE_SH = ./bin/start-minikube.sh
start-minikube:
ifeq (,$(wildcard $(START_MINIKUBE_SH)))
@{ \
set -e ;\
mkdir -p $(dir $(START_MINIKUBE_SH)) ;\
curl -sSLo $(START_MINIKUBE_SH) https://raw.githubusercontent.com/konveyor/tackle2-operator/main/hack/start-minikube.sh ;\
chmod +x $(START_MINIKUBE_SH) ;\
}
endif
$(START_MINIKUBE_SH);
.PHONY: install-tackle
INSTALL_TACKLE_SH = ./bin/install-tackle.sh
install-tackle:
ifeq (,$(wildcard $(INSTALL_TACKLE_SH)))
@{ \
set -e ;\
mkdir -p $(dir $(INSTALL_TACKLE_SH)) ;\
curl -sSLo $(INSTALL_TACKLE_SH) https://raw.githubusercontent.com/konveyor/tackle2-operator/main/hack/install-tackle.sh ;\
chmod +x $(INSTALL_TACKLE_SH) ;\
}
endif
export TACKLE_ADDON_WINDUP_IMAGE=$(IMG); \
export TACKLE_IMAGE_PULL_POLICY='IfNotPresent'; \
$(INSTALL_TACKLE_SH);
.PHONY: test-e2e
test-e2e:
bash hack/test-e2e.sh