Allow parallel 'make rebuild'

This commit is contained in:
Angus Gratton 2015-05-12 10:20:09 +10:00
parent 806962d5c7
commit 156143d850

View file

@ -183,7 +183,11 @@ flash: $(FW_FILE_1) $(FW_FILE_2)
test: flash
screen $(ESPPORT) 115200
rebuild: clean all
# the rebuild target is written like this so it can be run in a parallel build
# environment without causing weird side effects
rebuild:
$(MAKE) clean
$(MAKE) all
clean:
$(Q) rm -rf $(BUILD_DIR)