diff options
author | xengineering <me@xengineering.eu> | 2024-01-30 20:40:35 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-01-30 20:42:07 +0100 |
commit | 57e12bcf9aafcd6bea41e895e14fdd2e6f6d8479 (patch) | |
tree | 4611e0b7a9ed372627a2ee97cb83dc8ee32cdf78 /Makefile | |
parent | a4906e5da055d9f47b98e16a72b804bbfc6eb3e1 (diff) | |
download | soundbox-57e12bcf9aafcd6bea41e895e14fdd2e6f6d8479.tar soundbox-57e12bcf9aafcd6bea41e895e14fdd2e6f6d8479.tar.zst soundbox-57e12bcf9aafcd6bea41e895e14fdd2e6f6d8479.zip |
doc: Add version information to PDF title page
Since otherwise the Git describe output / version information is only
embedded into the file name the risk is given that Git version
information is lost by renaming the file.
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) |