[CRIU] [PATCH 1/2] make: protobuf -- Add space for readability
Cyrill Gorcunov
gorcunov at openvz.org
Tue Jan 20 12:18:13 PST 2015
It's easier to read files generated.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
protobuf/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/protobuf/Makefile b/protobuf/Makefile
index 9c7a0bbdb983..7c7df68325de 100644
--- a/protobuf/Makefile
+++ b/protobuf/Makefile
@@ -77,7 +77,7 @@ $(obj)/%.proto.d: $(obj)/%.proto
$(Q) grep "^[[:blank:]]*import[[:blank:]]" $^ | sed \
-e 's/[[:blank:]]*import[[:blank:]]*//' \
-e 's/[\";]//g' \
- -e 's/.*/$(subst /,\/,$^):$(subst /,\/,$(obj))\/&/' | \
+ -e 's/.*/$(subst /,\/,$^): $(subst /,\/,$(obj))\/&/' | \
uniq > $@
$(obj)/%.proto.c.d: $(obj)/%.proto | $(obj)/%.proto.d
@@ -86,7 +86,7 @@ $(obj)/%.proto.c.d: $(obj)/%.proto | $(obj)/%.proto.d
-e 's/[[:blank:]]*import[[:blank:]]*//' \
-e 's/.proto/.pb-c.c/' \
-e 's/[\";]//g' \
- -e 's/.*/$(subst .proto,.pb-c.c,$(subst /,\/,$<)):$(subst /,\/,$(obj))\/&/' | \
+ -e 's/.*/$(subst .proto,.pb-c.c,$(subst /,\/,$<)): $(subst /,\/,$(obj))\/&/' | \
uniq > $@
$(obj)/%.pb-c.c $(obj)/%.pb-c.h: $(obj)/%.proto $(obj)/%.proto.c.d $(obj)/opts.pb-c.c
--
1.9.3
More information about the CRIU
mailing list