diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |