Skip to content
Snippets Groups Projects
Unverified Commit 411e05c3 authored by Charles JAVERLIAT's avatar Charles JAVERLIAT
Browse files

makefile/Update eams target

parent 22f722d2
No related branches found
No related tags found
No related merge requests found
Pipeline #525 passed with stages
in 1 minute and 12 seconds
......@@ -2,6 +2,7 @@ TARGETS=cpp python nanopb eams
all: ${TARGETS}
project_dir = $(CURDIR)
messages = $(wildcard messages/*.proto)
.PHONY: ${TARGETS} clean
......@@ -20,8 +21,7 @@ nanopb:
eams:
mkdir -p eams
cd embeddedproto
protoc --plugin=protoc-gen-eams --eams_out=../eams --proto_path=../messages ../${messages}
cd /embeddedproto && protoc --plugin=protoc-gen-eams --eams_out=$(project_dir)/eams --proto_path=$(project_dir)/messages $(patsubst %, $(project_dir)/%, $(messages))
clean:
rm -rf ${TARGETS}
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