|
12 | 12 | # See the License for the specific language governing permissions and
|
13 | 13 | # limitations under the License.
|
14 | 14 |
|
15 |
| -ROOT_DIR_RELATIVE := . |
| 15 | +export REPO_ROOT := $(shell git rev-parse --show-toplevel) |
16 | 16 |
|
17 |
| -include $(ROOT_DIR_RELATIVE)/common.mk |
| 17 | +include $(REPO_ROOT)/common.mk |
18 | 18 |
|
19 | 19 | # Directories
|
20 |
| -TOOLS_DIR := hack/tools |
| 20 | +TOOLS_DIR := $(REPO_ROOT)/hack/tools |
21 | 21 | TOOLS_DIR_DEPS := $(TOOLS_DIR)/go.sum $(TOOLS_DIR)/go.mod $(TOOLS_DIR)/Makefile
|
22 | 22 | TOOLS_BIN_DIR := $(TOOLS_DIR)/bin
|
23 | 23 | BIN_DIR ?= bin
|
24 | 24 | RELEASE_DIR ?= out
|
25 | 25 |
|
26 |
| -export REPO_ROOT := $(shell git rev-parse --show-toplevel) |
27 | 26 | GH_REPO ?= kubernetes-sigs/cluster-api-provider-cloudstack
|
28 | 27 |
|
29 | 28 | # Binaries
|
@@ -86,7 +85,7 @@ all: build
|
86 | 85 | ## --------------------------------------
|
87 | 86 |
|
88 | 87 | .PHONY: binaries
|
89 |
| -binaries: $(CONTROLLER_GEN KUSTOMIZE) $(GOLANGCI_LINT) $(STATIC_CHECK) $(GINKGO_V1) $(GINKGO_V2) $(MOCKGEN) $(KUSTOMIZE) managers # Builds and installs all binaries |
| 88 | +binaries: $(CONTROLLER_GEN) $(GOLANGCI_LINT) $(STATIC_CHECK) $(GINKGO_V1) $(GINKGO_V2) $(MOCKGEN) $(KUSTOMIZE) managers # Builds and installs all binaries |
90 | 89 |
|
91 | 90 | .PHONY: managers
|
92 | 91 | managers:
|
@@ -247,7 +246,8 @@ cluster-api/tilt-settings.json: hack/tilt-settings.json cluster-api
|
247 | 246 | ## --------------------------------------
|
248 | 247 | ## Tests
|
249 | 248 | ## --------------------------------------
|
250 |
| -export KUBEBUILDER_ASSETS=$(REPO_ROOT)/$(TOOLS_BIN_DIR) |
| 249 | + |
| 250 | +export KUBEBUILDER_ASSETS=$(TOOLS_BIN_DIR) |
251 | 251 | DEEPCOPY_GEN_TARGETS_TEST=$(shell find test/fakes -type d -name "fakes" -exec echo {}\/zz_generated.deepcopy.go \;)
|
252 | 252 | DEEPCOPY_GEN_INPUTS_TEST=$(shell find test/fakes/* -name "*zz_generated*" -prune -o -type f -print)
|
253 | 253 | .PHONY: generate-deepcopy-test
|
|
0 commit comments