diff --git a/Makefile b/Makefile index b2149e6..1e98654 100644 --- a/Makefile +++ b/Makefile @@ -74,7 +74,9 @@ $(EXAMPLE_DIRS): lib examples: $(EXAMPLE_DIRS) $(Q)true -clean: $(EXAMPLE_DIRS:=.clean) styleclean +examplesclean: $(EXAMPLE_DIRS:=.clean) + +clean: examplesclean styleclean $(Q)$(MAKE) -C libopencm3 clean stylecheck: $(EXAMPLE_DIRS:=.stylecheck)