From f387b7b9b1ed5297da20a278f7a247dc091d689d Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Wed, 25 Oct 2023 03:05:12 -0500 Subject: Makefile: Use `date` by default and allow override VERSION can now be overridden, and defaults to the current date in %Y%m%d format instead of being hardcoded. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 00315dd..85dd24d 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION=1.0-beta5-20231022 +VERSION ?= 1.0-beta5-$(shell date +%Y%m%d) help: @printf "This Makefile simplifies creation of Adélie Linux media.\n\n" @@ -17,6 +17,7 @@ help: @printf "\nYou must set ARCH to a supported architecture.\n" @printf "Note that if you don't set ARCH to the native arch of your host,\nyou probably need qemu-user installed.\n" + @printf '\nVERSION will default to: %s\n' $(VERSION) adelie-inst-firmware-$(ARCH)-$(VERSION).iso: configs/horizon/$(ARCH)-horizon-fw.installfile configs/horizon/firmware.installfile configs/horizon/horizon.installfile configs/arch/$(ARCH).installfile configs/base/base.installfile hscript-image -t iso -o adelie-inst-firmware-$(ARCH)-$(VERSION).iso configs/horizon/$(ARCH)-horizon-fw.installfile -- cgit v1.2.3-70-g09d2