From 77cc3cdde1e6c02efa0e0cbf92f0a30221ad1bcc Mon Sep 17 00:00:00 2001 From: Mark Charlebois Date: Wed, 27 May 2015 19:50:39 -0700 Subject: [PATCH] Remove Build/git_version.* on each make The Build/git_version.d and Build/git_version.o files need to be removed on each make to prevent confusion from a previously generated dependency file for a different target. Signed-off-by: Mark Charlebois --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 8fc89f48bf..0075022892 100644 --- a/Makefile +++ b/Makefile @@ -59,6 +59,7 @@ endif GIT_DESC_SHORT := $(shell echo $(GIT_DESC) | cut -c1-16) $(shell mkdir -p $(BUILD_DIR)) +$(shell rm -f $(BUILD_DIR)git_version.*) $(shell echo "#include " > $(BUILD_DIR)git_version.c) $(shell echo "const char* px4_git_version = \"$(GIT_DESC)\";" >> $(BUILD_DIR)git_version.c) $(shell echo "const uint64_t px4_git_version_binary = 0x$(GIT_DESC_SHORT);" >> $(BUILD_DIR)git_version.c)