aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-03-15 05:34:32 -0400
committerB. Watson <urchlay@slackware.uk>2026-03-15 05:34:32 -0400
commite237b6858830f9d8355b7ae91506bf6af3f15009 (patch)
treece7150380522af2d52f7bc0cb43455f18b40d377 /Makefile
parentffebfdcc4f37d905ccb1a21105e2998b5af9bc55 (diff)
downloadfujinet-chat-e237b6858830f9d8355b7ae91506bf6af3f15009.tar.gz
Embed git hash and build host in binary.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
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