Skip to content

Commit 58ab082

Browse files
committed
Makefile: add generated and vendor target 🎨
This runs the ./hack scripts. Signed-off-by: Vincent Demeester <[email protected]>
1 parent 82747a4 commit 58ab082

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

‎Makefile‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,15 @@ apply: | $(KO) ; $(info $(M) ko apply -f config/) @ ## Apply config to the curre
4949

5050
.PHONY: resolve
5151
resolve: | $(KO) ; $(info $(M) ko resolve -f config/) @ ## Resolve config to the current cluster
52-
$Q $(KO) resolve --push=false -f config
52+
$Q $(KO) resolve --push=false --oci-layout-path=$(BIN)/oci -f config
53+
54+
.PHONY: generated
55+
generated: | vendor ; $(info $(M) update generated files) ## Update generated files
56+
$Q ./hack/update-codegen.sh
57+
58+
.PHONY: vendor
59+
vendor:
60+
$Q ./hack/update-deps.sh
5361

5462
## Tests
5563
TEST_UNIT_TARGETS := test-unit-verbose test-unit-race
@@ -85,7 +93,7 @@ watch-test: | $(RAM) ; $(info $(M) watch and run tests) @ ## Watch and run tests
8593

8694
.PHONY: watch-resolve
8795
watch-resolve: | $(KO) ; $(info $(M) watch and resolve config) @ ## Watch and build to the current cluster
88-
$Q $(KO) resolve -W --push=false -f config 1>/dev/null
96+
$Q $(KO) resolve -W --push=false --oci-layout-path=$(BIN)/oci -f config 1>/dev/null
8997

9098
.PHONY: watch-config
9199
watch-config: | $(KO) ; $(info $(M) watch and apply config) @ ## Watch and apply to the current cluster

0 commit comments

Comments
 (0)