updated makefiles to build/clean protobuf files

This commit is contained in:
bharnden 2019-03-26 08:58:29 -07:00
parent 088230515e
commit 0677a5c718
5 changed files with 9 additions and 7 deletions

1
.gitignore vendored
View file

@ -5,7 +5,6 @@
.version.date
Makefile
!kernel/**/Makefile
!daemon/proto/Makefile
Makefile.in
aclocal.m4
autom4te.cache

View file

@ -240,6 +240,7 @@ AC_CONFIG_FILES([Makefile
daemon/Makefile
daemon/doc/Makefile
daemon/doc/conf.py
daemon/proto/Makefile
netns/Makefile
netns/version.h
ns3/Makefile],)

View file

@ -11,9 +11,11 @@ SETUPPY = setup.py
SETUPPYFLAGS = -v
if WANT_DOCS
SUBDIRS = doc
DOCS = doc
endif
SUBDIRS = proto $(DOCS)
SCRIPT_FILES := $(notdir $(wildcard scripts/*))
MAN_FILES := $(notdir $(wildcard ../man/*.1))

View file

@ -1,5 +0,0 @@
all:
python -m grpc_tools.protoc -I . --python_out=../core/grpc --grpc_python_out=../core/grpc core.proto
clean:
rm core_pb2*

5
daemon/proto/Makefile.am Normal file
View file

@ -0,0 +1,5 @@
all:
$(PYTHON) -m grpc_tools.protoc -I . --python_out=../core/grpc --grpc_python_out=../core/grpc core.proto
clean:
-rm -f ../core/grpc/core_pb2*