You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@go version || (code=$$?; printf "\033[0;31mError\033[0m: unable to build locally\n"; exit $$code)
22
28
CGO_ENABLED=0 GOOS=linux go build -trimpath -a -ldflags "-s -w -X main.version=${VERSION} -X main.commit=${GIT_COMMIT} -X main.date=${DATE}" -o $(OUT_DIR)/gateway github.com/nginxinc/nginx-kubernetes-gateway/cmd/gateway
23
29
endif
24
30
25
31
.PHONY: generate
26
-
generate:
32
+
generate:## Run go generate
27
33
go generate ./...
28
34
29
-
.PHONY: out_dir
30
-
out_dir:
31
-
mkdir -p $(OUT_DIR)
32
-
33
35
.PHONY: clean
34
-
clean: out_dir
35
-
rm -rf $(OUT_DIR)
36
+
clean: ## Clean the build
37
+
-rm -r $(OUT_DIR)
38
+
39
+
.PHONY: clean--go-cache
40
+
clean-go-cache: ## Clean go cache
41
+
@go clean -modcache
36
42
37
43
.PHONY: deps
38
-
deps:
44
+
deps:## Add missing and remove unused modules, verify deps and download them to local cache
39
45
@go mod tidy && go mod verify && go mod download
40
46
41
47
.PHONY: update-codegen
42
-
update-codegen:
48
+
update-codegen:## Update codegen
43
49
# requires the root folder of the repo to be inside the GOPATH
44
50
./hack/update-codegen.sh
45
51
46
52
.PHONY: verify-codegen
47
-
verify-codegen:
53
+
verify-codegen:## Verify code generation
48
54
# requires the root folder of the repo to be inside the GOPATH
49
55
./hack/verify-codegen.sh
50
56
@@ -53,43 +59,43 @@ update-crds: ## Update CRDs
53
59
go run sigs.k8s.io/controller-tools/cmd/controller-gen crd:crdVersions=v1 schemapatch:manifests=./deploy/manifests/crds/ paths=./pkg/apis/... output:dir=./deploy/manifests/crds/
0 commit comments