From cdd7858207ab63ecaf003d8a43baf2ad9eaf2969 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Wed, 5 Oct 2016 22:08:00 +0300 Subject: [PATCH] Makefile: move default goal up Since commit e6dcf46 there is no need to specify the default goal explicitly. The common convention for Makefiles is the first goal in the file is the default one, so most universally there's "all:" goal at the beginning. Let's adhere to this convention, moving the "all:" up where it is to be expected. [v2: keep the DEFAULT_GOAL for clarity] Cc: Cyrill Gorcunov Signed-off-by: Kir Kolyshkin Acked-by: Cyrill Gorcunov Signed-off-by: Pavel Emelyanov --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index d2a8b4c31..0f2ba7644 100644 --- a/Makefile +++ b/Makefile @@ -135,6 +135,10 @@ endif CFLAGS += $(WARNINGS) $(DEFINES) +# Default target +all: criu lib +.PHONY: all + # # Version headers. include Makefile.versions @@ -205,9 +209,6 @@ lib: criu $(Q) $(MAKE) -C lib all .PHONY: lib -all: criu lib -.PHONY: all - subclean: $(call msg-clean, criu) $(Q) $(MAKE) -C lib clean