Add stylecheck to the examples directory

This commit is contained in:
Frantisek Burian
2014-01-11 13:25:23 +01:00
parent ffe9376c55
commit 1b98ef8bfc
2 changed files with 32 additions and 2 deletions

View File

@@ -62,12 +62,22 @@ examples: $(EXAMPLE_DIRS)
clean: $(EXAMPLE_DIRS:=.clean)
$(Q)$(MAKE) -C libopencm3 clean
stylecheck: $(EXAMPLE_DIRS:=.stylecheck)
styleclean: $(EXAMPLE_DIRS:=.styleclean)
%.clean:
$(Q)if [ -d $* ]; then \
printf " CLEAN $*\n"; \
$(MAKE) -C $* clean OPENCM3_DIR=$(OPENCM3_DIR) || exit $?; \
fi;
%.styleclean:
$(Q)$(MAKE) -C $* styleclean OPENCM3_DIR=$(OPENCM3_DIR)
.PHONY: build lib examples $(EXAMPLE_DIRS) install clean
%.stylecheck:
$(Q)$(MAKE) -C $* stylecheck OPENCM3_DIR=$(OPENCM3_DIR)
.PHONY: build lib examples $(EXAMPLE_DIRS) install clean stylecheck styleclean