diff --git a/Makefile b/Makefile index 5c6a46a..45ddf84 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,21 @@ -.PHONY: all flash clean +.PHONY: all lib example flash clean clean-lib clean-examples -all: compile flash +all: flash -compile: +lib: $(MAKE) -C src -flash: - $(MAKE) -C src program +example: lib + $(MAKE) -C examples -clean: +flash: example + $(MAKE) -C examples program + +clean: clean-lib clean-examples + +clean-lib: $(MAKE) -C src clean +clean-examples: + $(MAKE) -C examples clean +