criu/test/rpc/Makefile
Ruslan Kuprieiev c3078e79ec make: test: rpc: don't forget to delete rpc_pb2.pyc
When performing "make clean" rpc_pb2.pyc should be deleted as well.

Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2014-08-06 09:36:00 +04:00

21 lines
387 B
Makefile

all: test-c rpc_pb2.py
.PHONY: all
run: all
./run.sh
test-c: rpc.pb-c.o test.o
gcc $^ -o $@ -lprotobuf-c
test.o: test.c
gcc -c $< -I ./
rpc_pb2.py: rpc.proto
protoc --proto_path=. --python_out=. rpc.proto
rpc.pb-c.c: rpc.proto
protoc-c --proto_path=. --c_out=. rpc.proto
clean:
rm -rf build rpc.pb-c.o test.o test-c rpc.pb-c.c rpc.pb-c.h rpc_pb2.py rpc_pb2.pyc
.PHONY: clean