summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 63f9e65..41d2d9f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
BUILD_DIR := ./build
DATE := $(BUILD_DIR)/date.txt
+VERSION_FILE := $(BUILD_DIR)/version.txt
ARTIFACTS_DIR := $(BUILD_DIR)/artifacts
VERSION := $(shell git describe --dirty --long --always)
TARGET_NAME := soundbox-$(VERSION)
@@ -12,6 +13,9 @@ all: $(ARCHIVE) $(VERSIONED_DOC)
$(DATE):
git show -s --format=%cs > $@
+$(VERSION_FILE):
+ echo '$(VERSION)' > $@
+
$(ARCHIVE): $(TARGET_DIR)
tar --zstd -cf $@ -C $(ARTIFACTS_DIR) $(TARGET_NAME)