From 0bbcdb37e87852dde9a8fd09ca64739ae50e1846 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 7 Jan 2019 03:14:45 -0500 Subject: project: fixed dependency of build/version.h on build/ and .git/index. --- project/headers.mk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'project') 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)" > $@ -- cgit v1.2.3