summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKai Li <kaili_kloud@163.com>2014-01-13 20:25:30 +0800
committerKai Li <kaili_kloud@163.com>2014-01-13 20:25:30 +0800
commitdd33fdafa0396446c33b4f26fa81e849eed16ca1 (patch)
tree2a0591262de8390fd870cc86712866edb40a1745 /Makefile
parentb6aa777919a0b4d5544fb99a40eee2796fa1db8b (diff)
downloadcaffeonacl-dd33fdafa0396446c33b4f26fa81e849eed16ca1.tar.gz
caffeonacl-dd33fdafa0396446c33b4f26fa81e849eed16ca1.tar.bz2
caffeonacl-dd33fdafa0396446c33b4f26fa81e849eed16ca1.zip
Add make proto target to seperately generate caffe/proto/caffe.pb.h
issue: #22
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 925a453b..968e448d 100644
--- a/Makefile
+++ b/Makefile
@@ -86,7 +86,7 @@ PYTHON_LDFLAGS := $(LDFLAGS) $(foreach library,$(PYTHON_LIBRARIES),-l$(library))
##############################
# Define build targets
##############################
-.PHONY: all init test clean linecount examples py mat distribute py$(PROJECT) mat$(PROJECT)
+.PHONY: all init test clean linecount examples py mat distribute py$(PROJECT) mat$(PROJECT) proto
all: init $(NAME) $(STATIC_NAME) examples
@echo $(CXX_OBJS)
@@ -180,6 +180,8 @@ $(PROTO_GEN_PY): $(PROTO_SRCS)
protoc --proto_path=src --python_out=python $(PROTO_SRCS)
@echo
+proto: $(PROTO_GEN_CC)
+
$(PROTO_GEN_CC): $(PROTO_SRCS)
protoc --proto_path=src --cpp_out=src $(PROTO_SRCS)
mkdir -p include/$(PROJECT)/proto