From 0bbcdb37e87852dde9a8fd09ca64739ae50e1846 Mon Sep 17 00:00:00 2001 From: midipix Date: Jan 10 2019 03:43:14 +0000 Subject: project: fixed dependency of build/version.h on build/ and .git/index. --- 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)" > $@