From 7e13e1ca4f2ba0243fd90cecaeff0b093ad56081 Mon Sep 17 00:00:00 2001 From: 2ndbeam <2ndbeam@disroot.org> Date: Wed, 22 Oct 2025 17:26:48 +0300 Subject: [PATCH] add version and arch info to fused binary name --- Makefile | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 12e67c0..49e76ef 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,17 @@ +VERSION=0.1 + IGNORE_FLAGS=--ignore Makefile --ignore build LOVE_PATH := $(shell command -v love) +TARGET_NAME = $(shell arch) +FUSED_NAME = lines + +ifdef VERSION + FUSED_NAME := $(FUSED_NAME)-v$(VERSION) +endif +ifdef TARGET_NAME + FUSED_NAME := $(FUSED_NAME)-$(TARGET_NAME) +endif + default: @echo Available targets: love, fused, clean @@ -10,9 +22,9 @@ love: clean fused: love ifdef LOVE_PATH - cat ${LOVE_PATH} build/lines.love > build/lines - chmod +x build/lines - @echo created fused binary lines in build directory + cat ${LOVE_PATH} build/lines.love > build/$(FUSED_NAME) + chmod +x build/$(FUSED_NAME) + @echo created fused binary $(FUSED_NAME) in build directory else @echo love not found in PATH or LOVE_PATH endif