Commit e28960c3 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

make: protobuf -- Simplify sed'ing

No need for multiple sed calls, better pass
all options in once.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent d9adda7c
...@@ -52,10 +52,10 @@ PROTO_OBJS := $(patsubst %.c,%.o,$(PROTO_SRCS)) ...@@ -52,10 +52,10 @@ PROTO_OBJS := $(patsubst %.c,%.o,$(PROTO_SRCS))
%.proto.d: %.proto %.proto.d: %.proto
$(E) " PROTOBUF DEPS "$@ $(E) " PROTOBUF DEPS "$@
$(Q) grep "import" $^ | \ $(Q) grep "import" $^ | sed \
sed -e 's/^import//' | \ -e 's/^import//' \
sed -e 's/[\";]//g' | \ -e 's/[\";]//g' \
sed -e 's/.*/$^:&/' | \ -e 's/.*/$^:&/' | \
uniq > $@ uniq > $@
%.d: %.proto %.d: %.proto
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment