Skip to content

Commit

Permalink
sys/arduino/sketches: force rebuild on sketch delete
Browse files Browse the repository at this point in the history
Hack to force rebuild everytime so its rebuilt when a sketch is deleted.

There are different ways to properly fix it:

 * generate an equivalent of .d file included by make
 * change the sketches.cpp to directly include the .sketch files and GCC
   would do the job of generating the .d file with the '.sketch' files.
  • Loading branch information
cladmi committed Feb 20, 2018
1 parent 0f520f4 commit cb5b52d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sys/arduino/arduino_sketches.inc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ $(SKETCH_MODULE_DIR):
_ARDUINO_SKETCHES_MAKEFILE := $(lastword $(MAKEFILE_LIST))
$(SKETCH_MODULE_DIR)/$(SKETCH_CPP): $(_ARDUINO_SKETCHES_MAKEFILE)
$(SKETCH_MODULE_DIR)/Makefile: $(_ARDUINO_SKETCHES_MAKEFILE)

# Hack to force rebuilding if one of the `SKETCHES` is deleted
.PHONY: $(SKETCH_MODULE_DIR)/$(SKETCH_CPP)

0 comments on commit cb5b52d

Please sign in to comment.