Skip to content

Commit

Permalink
src/Makefile: make 'make clean' clean all produced files including hy…
Browse files Browse the repository at this point in the history
…drafw_version.hdr (#155)
  • Loading branch information
ia committed Jan 8, 2024
1 parent 16fac82 commit 1eca07b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,9 @@ PRE_MAKE_ALL_RULE_HOOK: ./common/hydrafw_version.hdr
# This rule hook is defined in the ChibiOS build system
POST_MAKE_ALL_RULE_HOOK: $(BUILDDIR)/$(PROJECT).dfu

# This rule hook for `make clean` is defined in the ChibiOS build system
CLEAN_RULE_HOOK: $(shell rm -f ./common/hydrafw_version.hdr)

# Custom rule to flash firmware when hydrabus is connected in dfu mode
flash: $(BUILDDIR)/$(PROJECT).dfu
$(OUT_LOG) echo Flashing $^
Expand Down

0 comments on commit 1eca07b

Please sign in to comment.