Skip to content

Commit d1e2781

Browse files
committed
add module definition in Makefile
1 parent 37c35d7 commit d1e2781

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ EXAMPLES_KIND_DIR := $(abspath examples/kind)
5656
PROVIDERS_KIND_DIR := $(abspath providers/kind)
5757
EXAMPLES_CLUSTER_API_DIR := $(abspath examples/cluster-api)
5858
PROVIDERS_CLUSTER_API_DIR := $(abspath providers/cluster-api)
59+
EXAMPLES_CLUSTER_INVENTORY_API_DIR := $(abspath examples/cluster-inventory-api)
60+
PROVIDERS_CLUSTER_INVENTORY_API_DIR := $(abspath providers/cluster-inventory-api)
5961
GO_INSTALL := ./hack/go-install.sh
6062

6163
# The help will print out all targets with their descriptions organized bellow their categories. The categories are represented by `##@` and the target descriptions by `##`.
@@ -140,6 +142,8 @@ modules: ## Runs go mod to ensure modules are up to date.
140142
cd $(PROVIDERS_KIND_DIR); go mod tidy
141143
cd $(EXAMPLES_CLUSTER_API_DIR); go mod tidy
142144
cd $(PROVIDERS_CLUSTER_API_DIR); go mod tidy
145+
cd $(EXAMPLES_CLUSTER_INVENTORY_API_DIR); go mod tidy
146+
cd $(PROVIDERS_CLUSTER_INVENTORY_API_DIR); go mod tidy
143147

144148
## --------------------------------------
145149
## Cleanup / Verification
@@ -165,6 +169,8 @@ verify-modules: modules $(GO_MOD_CHECK) ## Verify go modules are up to date
165169
$(PROVIDERS_KIND_DIR)/go.mod $(PROVIDERS_KIND_DIR)/go.sum \
166170
$(EXAMPLES_CLUSTER_API_DIR)/go.mod $(EXAMPLES_CLUSTER_API_DIR)/go.sum \
167171
$(PROVIDERS_CLUSTER_API_DIR)/go.mod $(PROVIDERS_CLUSTER_API_DIR)/go.sum \
172+
$(EXAMPLES_CLUSTER_INVENTORY_API_DIR)/go.mod $(EXAMPLES_CLUSTER_INVENTORY_API_DIR)/go.sum \
173+
$(PROVIDERS_CLUSTER_INVENTORY_API_DIR)/go.mod $(PROVIDERS_CLUSTER_INVENTORY_API_DIR)/go.sum \
168174
); then \
169175
git diff; \
170176
echo "go module files are out of date, please run 'make modules'"; exit 1; \

0 commit comments

Comments
 (0)