From ecc0d9807d4a69891cd42582066ef5f5412c2d6c Mon Sep 17 00:00:00 2001 From: Gareth McMullin Date: Tue, 23 May 2017 11:57:35 -0700 Subject: [PATCH] Fix parallel build. Add explicit dependency of command.c on version.h Remove version.h on make clean. --- src/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 8bc2659..aef13fb 100644 --- a/src/Makefile +++ b/src/Makefile @@ -83,7 +83,7 @@ blackmagic: include/version.h $(OBJ) clean: host_clean $(Q)echo " CLEAN" -$(Q)$(RM) -f *.o *.d *~ blackmagic $(HOSTFILES) - -$(Q)$(RM) -f platforms/*/*.o platforms/*/*.d mapfile + -$(Q)$(RM) -f platforms/*/*.o platforms/*/*.d mapfile include/version.h all_platforms: $(Q)set -e ;\ @@ -105,6 +105,7 @@ all_platforms: echo "" >> artifacts/index.html ;\ cp artifacts/*.bin artifacts/$(shell git describe --always) +command.c: include/version.h include/version.h: FORCE $(Q)echo " GIT include/version.h"