@@ -457,8 +457,8 @@ build-tools: ## Download & build all the tools locally if necessary.
457457# https://github.com/operator-framework/community-operators/blob/7f1438c/docs/packaging-operator.md#updating-your-existing-operator
458458.PHONY : catalog-build
459459catalog-build : opm # # Build a file-based catalog image.
460- # Remove the catalog directory and Dockerfile
461- -rm -r ${CATALOG_DIR} ${CATALOG_DOCKERFILE}
460+ # Remove the catalog directory and Dockerfile if they exist
461+ -rm -rf ${CATALOG_DIR} ${CATALOG_DOCKERFILE}
462462 @mkdir -p ${CATALOG_DIR}
463463 $(OPM ) generate dockerfile ${CATALOG_DIR}
464464 $(OPM ) init ${OPERATOR_NAME} \
@@ -472,7 +472,7 @@ catalog-build: opm ## Build a file-based catalog image.
472472 $(OPM ) validate ${CATALOG_DIR}
473473 docker build . -f ${CATALOG_DOCKERFILE} -t ${CATALOG_IMG}
474474 # Clean up the catalog directory and Dockerfile
475- rm -r ${CATALOG_DIR} ${CATALOG_DOCKERFILE}
475+ - rm -rf ${CATALOG_DIR} ${CATALOG_DOCKERFILE}
476476
477477.PHONY : catalog-push
478478catalog-push : # # Push a catalog image.
@@ -498,7 +498,7 @@ container-build: check ## Build containers
498498 make docker-build bundle-build
499499
500500.PHONY : bundle-build-community
501- bundle-build-community : bundle-community # # Run bundle community changes in CSV, and then build the bundle image.
501+ bundle-build-community : bundle-community-k8s # # Run bundle community changes in CSV, and then build the bundle image.
502502 docker build -f bundle.Dockerfile -t $(BUNDLE_IMG ) .
503503
504504.PHONY : container-build-community
0 commit comments