Skip to content

Commit

Permalink
Add check-generate target to makefile
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Lezar <[email protected]>
  • Loading branch information
elezar committed Feb 15, 2025
1 parent cdc471e commit 1c33eb4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ endif
CMDS := $(patsubst ./cmd/%/,%,$(sort $(dir $(wildcard ./cmd/*/))))
CMD_TARGETS := $(patsubst %,cmd-%, $(CMDS))

CHECK_TARGETS := golangci-lint
CHECK_TARGETS := golangci-lint check-generate
MAKE_TARGETS := binaries build build-image check fmt lint-internal test examples cmds coverage generate vendor check-modules $(CHECK_TARGETS)

TARGETS := $(MAKE_TARGETS) $(CMD_TARGETS)
Expand Down Expand Up @@ -101,6 +101,9 @@ coverage: test

generate: generate-deepcopy fmt

check-generate: generate
git diff --exit-code HEAD

generate-deepcopy: .remove-deepcopy
for dir in $(DEEPCOPY_SOURCES); do \
controller-gen \
Expand Down

0 comments on commit 1c33eb4

Please sign in to comment.