summaryrefslogtreecommitdiffstats
path: root/build/config.mk
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-08-28 15:29:46 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-08-28 15:34:32 -0400
commit4a278d3e39a685379711727eac7bfaa83679e0e4 (patch)
tree855bedf766d8c0c4ba72ca59bdb19a137ae06c94 /build/config.mk
parent97849b81fb146cc1d53a369dda03c60360da08b5 (diff)
downloadbfs-4a278d3e39a685379711727eac7bfaa83679e0e4.tar.xz
build: Allow ./configure --version=X.Y.Z
Diffstat (limited to 'build/config.mk')
-rw-r--r--build/config.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/build/config.mk b/build/config.mk
index 80206c7..86a4861 100644
--- a/build/config.mk
+++ b/build/config.mk
@@ -38,6 +38,7 @@ gen/vars.mk::
@printf 'MKDIR := %s\n' "$$XMKDIR" >>$@
@printf 'PKG_CONFIG := %s\n' "$$XPKG_CONFIG" >>$@
@printf 'RM := %s\n' "$$XRM" >>$@
+ @test -z "$$VERSION" || printf 'export VERSION=%s\n' "$$VERSION" >>$@
${VCAT} $@
# Sets the build flags. This depends on vars.mk and uses a recursive make so