summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2023-10-25 03:05:12 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2023-10-25 03:05:12 -0500
commitf387b7b9b1ed5297da20a278f7a247dc091d689d (patch)
treec55bf4fb189d38cd1accc2c5350ec061bd0f81c9
parentfcd49f12493d6d47c128693e14b3f29ebe7bba42 (diff)
downloadimage-f387b7b9b1ed5297da20a278f7a247dc091d689d.tar.gz
image-f387b7b9b1ed5297da20a278f7a247dc091d689d.tar.bz2
image-f387b7b9b1ed5297da20a278f7a247dc091d689d.tar.xz
image-f387b7b9b1ed5297da20a278f7a247dc091d689d.zip
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.
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
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