protobuf/tests/Makefile
Adrian Reber 4d2fd43eab
Add tests and gating.yaml
Resolves: rhbz#1915766

Signed-off-by: Adrian Reber <areber@redhat.com>
2021-05-07 09:42:57 +02:00

13 lines
439 B
Makefile

all: add_person_cpp
protoc_middleman: addressbook.proto
protoc --cpp_out=. --python_out=. addressbook.proto
add_person_cpp: add_person.cc protoc_middleman
pkg-config --cflags protobuf # fails if protobuf is not installed
c++ -std=c++11 add_person.cc addressbook.pb.cc -o add_person_cpp `pkg-config --cflags --libs protobuf`
clean:
rm -f addressbook_pb2.py addressbook.pb.cc addressbook.pb.h add_person_cpp data
rm -rf __pycache__