Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src/Makefile: make 'make clean' clean all produced files #155

Merged
merged 1 commit into from
Jan 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
src/Makefile: make 'make clean' clean all produced files including hy…
…drafw_version.hdr
  • Loading branch information
ia committed Jan 7, 2024
commit 0c99fa65ce2f5cb593f9745ef3e5bf69f9cd82cd
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