Add individual make targets for update-scripts
@@ -63,13 +63,43 @@ verify-scripts:
.PHONY: verify-scripts
verify: verify-scripts verify-codegen-crds
-update-scripts:
- hack/update-deepcopy.sh
+################################################################################################
+#
+# BEGIN: Update scripts. Defaults to generating updates for all API packages.
+# Set API_GROUP_VERSIONS to a space separated list of <group>/<version> to limit
+# the scope of the updates. Eg API_GROUP_VERSIONS="apps/v1 build/v1" make update-scripts.
+# Note: Protobuf generation is handled separately, see hack/lib/init.sh.
+#
+################################################################################################
+
+.PHONY: update-scripts
+update-scripts: update-compatibility update-openapi update-deepcopy update-protobuf update-swagger-docs
+
+.PHONY: update-compatibility
+update-compatibility:
hack/update-compatibility.sh
+
+.PHONY: update-openapi
+update-openapi:
hack/update-openapi.sh
+
+.PHONY: update-deepcopy
+update-deepcopy:
+ hack/update-deepcopy.sh
+
+.PHONY: update-protobuf
+update-protobuf:
hack/update-protobuf.sh
+
+.PHONY: update-swagger-docs
+update-swagger-docs:
hack/update-swagger-docs.sh
-.PHONY: update-scripts
+
+#####################
+#
+# END: Update scripts
+#
+#####################
verify-with-container:
$(RUNTIME) run -ti --rm -v $(PWD):/go/src/github.com/openshift/api:z -w /go/src/github.com/openshift/api $(RUNTIME_IMAGE_NAME) make verify
