From 983d70de3d062602bd52e378869044cc7d044753 Mon Sep 17 00:00:00 2001 From: Dan Date: Fri, 3 May 2024 04:08:46 -0700 Subject: [PATCH] fixed makefile --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 88c3d900ca..2e3b1d9d12 100644 --- a/Makefile +++ b/Makefile @@ -11,8 +11,8 @@ CONFIG_FILE = $(HOME)/.arduino15/arduino-cli.yaml BRANCH_SUFFIX=h # Fetch tags, determine version numbers based on the latest tag, and slice off the branch suffix -VORTEX_VERSION_MAJOR ?= $(shell git fetch --depth=1 origin +refs/tags/*:refs/tags/* &> /dev/null && git tag --list "*$(BRANCH_SUFFIX)" | sort -V | tail -n1 | sed 's/.$(BRANCH_SUFFIX)$$//' | cut -d. -f1) -VORTEX_VERSION_MINOR ?= $(shell git tag --list "*$(BRANCH_SUFFIX)" | sort -V | tail -n1 | sed 's/.$(BRANCH_SUFFIX)$$//' | cut -d. -f2) +VORTEX_VERSION_MAJOR ?= $(shell git fetch --depth=1 origin +refs/tags/*:refs/tags/* &> /dev/null && git tag --list "*$(BRANCH_SUFFIX)" | sort -V | tail -n1 | cut -d. -f1) +VORTEX_VERSION_MINOR ?= $(shell git tag --list "*$(BRANCH_SUFFIX)" | sort -V | tail -n1 | sed 's/$(BRANCH_SUFFIX)$$//' | cut -d. -f2) VORTEX_BUILD_NUMBER ?= $(shell git rev-list --count HEAD) # If no tags are found, default to 0.1.0