[CRIU] [PATCH] protobuf: rename default make target from "all" to "protobuf"

Kinsbursky Stanislav skinsbursky at openvz.org
Thu Jul 19 06:18:25 EDT 2012


From: Stanislav Kinsbursky <skinsbursky at openvz.org>

Otherwise it look strange when nothing to compile and make says that target
"all" doesn't require to be rebuild.

Signed-off-by: Stanislav Kinsbursky <skinsbursky at openvz.org>
---
 Makefile          |    2 +-
 protobuf/Makefile |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
-------------- next part --------------
diff --git a/Makefile b/Makefile
index 9905c3d..cb9d267 100644
--- a/Makefile
+++ b/Makefile
@@ -79,7 +79,7 @@ all: protobuf pie
 pie: $(PIE-GEN)
 
 protobuf:
-	$(Q) $(MAKE) -C protobuf/ all
+	$(Q) $(MAKE) -C protobuf/
 
 %.o: %.c
 	$(E) "  CC      " $@
diff --git a/protobuf/Makefile b/protobuf/Makefile
index 8e4b87f..bffea49 100644
--- a/protobuf/Makefile
+++ b/protobuf/Makefile
@@ -52,7 +52,7 @@ HDRS	:= $(patsubst %.proto,%.pb-c.h,$(PROTO_FILES))
 SRCS	:= $(patsubst %.proto,%.pb-c.c,$(PROTO_FILES))
 OBJS	:= $(patsubst %.c,%.o,$(SRCS))
 
-.DEFAULT_GOAL	:= all
+.DEFAULT_GOAL	:= protobuf
 
 %.pb-c.c: %.proto
 	$(E) "  PROTOBUF "$@
@@ -68,9 +68,9 @@ $(LIBRARY): $(OBJS)
 	$(E) "  LINK     "$@
 	$(Q) ld -r -o $@ $(OBJS)
 
-.PHONY: all clean
+.PHONY: protobuf
 
-all: $(LIBRARY)
+protobuf: $(LIBRARY)
 
 clean:
 	$(E) "  CLEAN PROTOBUF"


More information about the CRIU mailing list