diff options
-rw-r--r-- | project/headers.mk | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/project/headers.mk b/project/headers.mk index 0c3f9a4..59125f9 100644 --- a/project/headers.mk +++ b/project/headers.mk @@ -1,6 +1,5 @@ # build/version.h -build/version.h:$(SOURCE_DIR)/VERSION $(SOURCE_DIR)/.git/index - mkdir -p build +build/version.h:$(wildcard $(SOURCE_DIR)/VERSION $(SOURCE_DIR)/.git/index) dirs.tag printf '#define VERSION "%s"\n' \ "$$(cd $(SOURCE_DIR); $(SHELL) ./tools/version.sh)" > $@ |