summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
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 $@