Skip to content

Commit 049e6db

Browse files
committed
More readable.
1 parent 89d9539 commit 049e6db

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ help: ## Display this help.
4646

4747
##@ Releases
4848

49+
LATEST_RELEASE_TAG := $(shell git describe --tags `git rev-list --tags --max-count=1`)
50+
4951
.PHONY: release-manifests
5052
release-manifests: $(KUSTOMIZE) build-installer ## Builds the manifests to publish with a release
5153
mkdir -p $(RELEASE_DIR)
@@ -57,7 +59,7 @@ release-manifests: $(KUSTOMIZE) build-installer ## Builds the manifests to publi
5759

5860
ifneq ($(CI),true)
5961
# for devel purposes with local overwrite in clusterctl.yaml
60-
mkdir -p infrastructure-metal-stack && cd infrastructure-metal-stack && [ ! -L "$(shell git describe --tags `git rev-list --tags --max-count=1`)" ] && ln -s ../.release $(shell git describe --tags `git rev-list --tags --max-count=1`) || echo "devel symlink already exists"
62+
mkdir -p infrastructure-metal-stack && cd infrastructure-metal-stack && [ ! -L "$(LATEST_RELEASE_TAG)" ] && ln -s ../.release $(LATEST_RELEASE_TAG) || echo "devel symlink already exists"
6163
endif
6264

6365
##@ Development

0 commit comments

Comments
 (0)