From 6115ace47f03073fdb6ece653bc35a87fc2dfedb Mon Sep 17 00:00:00 2001 From: Philippe Renon Date: Mon, 18 Jul 2016 01:11:38 +0200 Subject: [PATCH] make: add "pretty" targets (uncrustify aliases) --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 814620d27..b0d25c206 100644 --- a/Makefile +++ b/Makefile @@ -425,6 +425,9 @@ define UNCRUSTIFY_TEMPLATE uncrustify_$(1): @$(ECHO) "Auto-formatting $(1) source code" $(V1) UNCRUSTIFY_CONFIG="$(ROOT_DIR)/make/uncrustify/uncrustify.cfg" $(SHELL) make/scripts/uncrustify.sh $(call toprel, $(2)) + +.PHONY: pretty_$(1) +pretty_$(1): uncrustify_$(1) endef $(foreach uncrustify_targ, $(UNCRUSTIFY_TARGETS), $(eval $(call UNCRUSTIFY_TEMPLATE,$(uncrustify_targ),$(ROOT_DIR)/$(uncrustify_targ)))) @@ -432,6 +435,9 @@ $(foreach uncrustify_targ, $(UNCRUSTIFY_TARGETS), $(eval $(call UNCRUSTIFY_TEMPL .PHONY: uncrustify_all uncrustify_all: $(addprefix uncrustify_,$(UNCRUSTIFY_TARGETS)) +.PHONY: pretty +pretty: $(addprefix pretty_,$(UNCRUSTIFY_TARGETS)) + ############################## # # Doxygen documentation @@ -651,9 +657,9 @@ help: @$(ECHO) " install - Install GCS to \"DESTDIR\" with prefix \"prefix\" (Linux only)" @$(ECHO) @$(ECHO) " [Code Formatting]" - @$(ECHO) " uncrustify_ - Reformat code according to the project's standards" + @$(ECHO) " pretty_ - Reformat code according to the project's standards" @$(ECHO) " Supported sources are ($(UNCRUSTIFY_TARGETS))" - @$(ECHO) " uncrustify_all - Reformat all source code" + @$(ECHO) " pretty - Reformat all source code" @$(ECHO) @$(ECHO) " [Code Documentation]" @$(ECHO) " docs_ - Generate HTML documentation for "