make: provide "examplesclean" to avoid cleaning library as well

We already have "make examples" and "make lib" but make clean cleans
everything.  Not super useful for end users, but rather handy for people
working on the examples.
This commit is contained in:
Karl Palsson
2016-04-18 00:24:25 +00:00
parent 30667fe62c
commit 408b83f47a

View File

@@ -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)