From e237b6858830f9d8355b7ae91506bf6af3f15009 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sun, 15 Mar 2026 05:34:32 -0400 Subject: Embed git hash and build host in binary. --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8d9af7b..83a7c33 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,8 @@ PARTS=loading1.xex config/config.xex loading2.xex memsetup.xex font_dl.xex clien TESTXEX=fnchat-$(shell date +%Y%m%d-%H%M).xex +VERSION:=$(shell git describe --long 2>/dev/null || echo NOGIT )+$(shell date +%Y%m%d-%H%M )@$(shell hostname -s 2>/dev/null || echo UNKNOWN ) + # remove the -a if using older versions of atasm ATASM=atasm -s -a @@ -14,10 +16,10 @@ fnchat.xex: $(PARTS) client.xex: client client: - $(MAKE) -f Makefile.client + $(MAKE) -f Makefile.client VERSION=$(VERSION) config/config.xex: - $(MAKE) -C config + $(MAKE) -C config VERSION=$(VERSION) clean: rm -f $(PARTS) *.o src/*.o obj/atari/*.o config/*.o fnchat.xex -- cgit v1.2.3