use substitution references instead of patsubst

References: https://www.gnu.org/software/make/manual/html_node/Substitution-Refs.html
This commit is contained in:
Dmitriy Pleshevskiy 2023-12-05 11:36:13 +03:00
parent f16851d6a2
commit 7c7557aa48
Signed by: pleshevskiy
GPG key ID: 79C4487B44403985

View file

@ -1,6 +1,6 @@
PLATFORMIO = nix shell nixpkgs\#platformio --command platformio PLATFORMIO = nix shell nixpkgs\#platformio --command platformio
MARLIN_DIR := $(PWD)/../Marlin-VERSION MARLIN_DIR := $(PWD)/../Marlin-VERSION
MARLIN_2.0.9.7 := $(patsubst %-VERSION,%-2.0.9.7,$(MARLIN_DIR)) MARLIN_2.0.9.7 := $(MARLIN_DIR:%-VERSION=%-2.0.9.7)
.PHONY: ender3v2 .PHONY: ender3v2
ender3v2: ender3v2: