From 929e1052d822f8b18f9545375e4f07b9a5c7121a Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 14 Jan 2024 15:59:55 +0100 Subject: Add versioned documentation file in artifacts dir The full soundbox-- 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-- prefix. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c885182..2615d02 100644 --- a/Makefile +++ b/Makefile @@ -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 $@ -- cgit v1.2.3-70-g09d2