Skip to content

Commit c75061c

Browse files
authored
Merge pull request #998 from hj-johannes-lee/fix-misconfig-and-typo
Makefile: fix misconfig and typo
2 parents 1042709 + a64764e commit c75061c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ BUNDLE_DEFAULT_CHANNEL := --default-channel=$(DEFAULT_CHANNEL)
2727
endif
2828
BUNDLE_METADATA_OPTS ?= $(BUNDLE_CHANNELS) $(BUNDLE_DEFAULT_CHANNEL)
2929
OLM_MANIFESTS = deployments/operator/manifests
30-
BUNDLE_DIR = community-operators/operators/intel-device-plugins-operator/${OPERATOR_VERSION}
30+
BUNDLE_DIR = community-operators/operators/intel-device-plugins-operator/$(OPERATOR_VERSION)
3131

3232
TESTDATA_DIR = pkg/topology/testdata
3333

@@ -116,18 +116,18 @@ build: $(cmds)
116116

117117
.PHONY: bundle
118118
bundle:
119-
mkdir -p ${BUNDLE_DIR}/${OPERATOR_VERSION}
119+
mkdir -p $(BUNDLE_DIR)
120120
$(OPERATOR_SDK) generate kustomize manifests -q --input-dir $(OLM_MANIFESTS) --output-dir $(OLM_MANIFESTS) --apis-dir pkg/apis
121121
$(KUSTOMIZE) build $(OLM_MANIFESTS) | sed "s|intel-deviceplugin-operator:devel|intel-deviceplugin-operator:$(OPERATOR_VERSION)|" | $(OPERATOR_SDK) generate bundle -q --overwrite --kustomize-dir $(OLM_MANIFESTS) --version $(OPERATOR_VERSION) $(BUNDLE_METADATA_OPTS) --output-dir .
122122
# Remove unneeded resources
123123
rm manifests/*service.yaml
124124
rm manifests/*clusterrole.yaml
125125
# Put generated files in a directory
126-
mv manifests metadata tests bundle.Dockerfile ${BUNDLE_DIR}
127-
$(OPERATOR_SDK) bundle validate ${BUNDLE_DIR}/
126+
mv manifests metadata tests bundle.Dockerfile $(BUNDLE_DIR)
127+
$(OPERATOR_SDK) bundle validate $(BUNDLE_DIR)/
128128

129129
bundle-build:
130-
docker build -f $(BUNDLE_DIR)/bundle.Dockerfile -t $(BUNDLE_IMG) $(BUNDLE_DIR)
130+
$(BUILDER) build -f $(BUNDLE_DIR)/bundle.Dockerfile -t $(BUNDLE_IMG) $(BUNDLE_DIR)
131131

132132
clean:
133133
@for cmd in $(cmds) ; do pwd=$(shell pwd) ; cd cmd/$$cmd ; $(GO) clean ; cd $$pwd ; done

0 commit comments

Comments
 (0)