From 0c1cabb24ed00c6a69a69cc4bc4505c384be6b35 Mon Sep 17 00:00:00 2001 From: xengineering Date: Wed, 31 Jan 2024 21:34:17 +0100 Subject: 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. --- Makefile | 2 ++ 1 file changed, 2 insertions(+) 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)' > $@ -- cgit v1.2.3-70-g09d2