diff options
Diffstat (limited to 'Makefile')
-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 $@ |