Fix parallel build.

Add explicit dependency of command.c on version.h
Remove version.h on make clean.
This commit is contained in:
Gareth McMullin 2017-05-23 11:57:35 -07:00
parent f450b1745d
commit ecc0d9807d
1 changed files with 2 additions and 1 deletions

View File

@ -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 "</ul></body></html>" >> 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"