summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-01-31 21:34:17 +0100
committerxengineering <me@xengineering.eu>2024-01-31 21:34:17 +0100
commit0c1cabb24ed00c6a69a69cc4bc4505c384be6b35 (patch)
treeef294e230c29f2b6dbaf43180dc0d47dd1357e73
parent9af2e3c3357ff738700e89dd816fd4162fd3bfcf (diff)
downloadsoundbox-0c1cabb24ed00c6a69a69cc4bc4505c384be6b35.tar
soundbox-0c1cabb24ed00c6a69a69cc4bc4505c384be6b35.tar.zst
soundbox-0c1cabb24ed00c6a69a69cc4bc4505c384be6b35.zip
doc: Make version and date files phony targets
This makes sure that the version / date file is always re-generated. Otherwise it is hard to make sure that e.g. the version is always aligned with the real state.
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 41d2d9f..729e61a 100644
--- a/Makefile
+++ b/Makefile
@@ -10,9 +10,11 @@ ARCHIVE := $(ARTIFACTS_DIR)/$(TARGET_NAME).tar.zst
all: $(ARCHIVE) $(VERSIONED_DOC)
+.PHONY: $(DATE)
$(DATE):
git show -s --format=%cs > $@
+.PHONY: $(VERSION_FILE)
$(VERSION_FILE):
echo '$(VERSION)' > $@