tweaked Makefile

- only builds C++ by default.
 - files are generated into rs-nogui src tree.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5713 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2012-10-22 19:07:54 +00:00
parent fde1e8d66d
commit e432a2a661

View File

@ -6,8 +6,8 @@ PROTO = core.proto peers.proto system.proto chat.proto search.proto files.proto
PROTOPATH = ./definition PROTOPATH = ./definition
#CDESTPATH = ./gencc #CDESTPATH = ./gencc
CDESTPATH = ../../retroshare-nogui/src/rpc/proto/gencc CDESTPATH = ../../retroshare-nogui/src/rpc/proto/gencc
#PYDESTPATH = ./genpy PYDESTPATH = ./genpy
PYDESTPATH = ../../../../github/pyrs/pyrs/proto #PYDESTPATH = ../../../../github/pyrs/pyrs/proto
CLIST = $(PROTO:%.proto=%.cc) CLIST = $(PROTO:%.proto=%.cc)
CCODE = $(patsubst %.proto,$(CDESTPATH)/%.pb.cc, $(PROTO)) CCODE = $(patsubst %.proto,$(CDESTPATH)/%.pb.cc, $(PROTO))
@ -16,10 +16,12 @@ PYCODE = $(patsubst %.proto,$(PYDESTPATH)/%_pb2.py, $(PROTO))
all: allc all: allc
echo $(CCODE)
echo $(PYCODE)
allc: $(CCODE) $(PYCODE) allc: $(CCODE)
echo $(CCODE)
python_proto: $(PYCODE)
echo $(PYCODE)
$(CDESTPATH)/%.pb.cc : $(PROTOPATH)/%.proto $(CDESTPATH)/%.pb.cc : $(PROTOPATH)/%.proto
$(EXEC) --proto_path=$(PROTOPATH) --cpp_out=$(CDESTPATH) $< $(EXEC) --proto_path=$(PROTOPATH) --cpp_out=$(CDESTPATH) $<