diff options
author | xengineering <me@xengineering.eu> | 2024-01-14 15:59:55 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-01-14 15:59:55 +0100 |
commit | 929e1052d822f8b18f9545375e4f07b9a5c7121a (patch) | |
tree | 58f0c3452acc98ced0d4957f8cac53430ebbdf7d | |
parent | e94b3cc341a4a641ca41cc95f3b8ae907654e34a (diff) | |
download | soundbox-929e1052d822f8b18f9545375e4f07b9a5c7121a.tar soundbox-929e1052d822f8b18f9545375e4f07b9a5c7121a.tar.zst soundbox-929e1052d822f8b18f9545375e4f07b9a5c7121a.zip |
Add versioned documentation file in artifacts dir
The full soundbox-<version>- prefix was only used for the artifact tar
archive name so far. This has the advantage that the file names inside
that archive are shorter like 'documentation.pdf'.
But sometimes it is useful to pass only the documentation around as a
PDF file because it is easier for people to open it compared to a tar
file.
For this purpose a second artifact installation for the documentation
PDF is added including the soundbox-<version>- prefix.
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -2,14 +2,18 @@ BUILD_DIR := ./build ARTIFACTS_DIR := $(BUILD_DIR)/artifacts VERSION := $(shell git describe --dirty --long --always) TARGET_NAME := soundbox-$(VERSION) +VERSIONED_DOC := $(ARTIFACTS_DIR)/$(TARGET_NAME)-documentation.pdf TARGET_DIR := $(ARTIFACTS_DIR)/$(TARGET_NAME) ARCHIVE := $(ARTIFACTS_DIR)/$(TARGET_NAME).tar.zst -all: $(ARCHIVE) +all: $(ARCHIVE) $(VERSIONED_DOC) $(ARCHIVE): $(TARGET_DIR) tar --zstd -cf $@ -C $(ARTIFACTS_DIR) $(TARGET_NAME) +$(VERSIONED_DOC): doc + install -Dm 644 $(BUILD_DIR)/doc/documentation.pdf $@ + $(TARGET_DIR): debug rm -rf $@ mkdir -p $@ |