Skip to content

Commit a195e60

Browse files
authored
fixes the missing piqi-generated file (#20)
Fixes #19. It turns out that if the executable built before the library the piqi sources are not generated and we have the error. The `BUILT_SOURCES` variable is the solution.
1 parent 1d80945 commit a195e60

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

libtrace/src/Makefile.am

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,17 @@ pkginclude_HEADERS = trace.container.hpp frame_arch.h frame.piqi.pb.h config.h
88
PIQI = piqi
99
PROTOC = protoc
1010
PIQIFILE = ../../piqi/frame.piqi
11+
PIQIFILEC = frame.piqi.pb.cc frame.piqi.pb.h
1112

12-
frame.piqi.pb.cc frame.piqi.pb.h: frame.piqi.proto
13+
$(PIQIFILEC): frame.piqi.proto
1314
$(PROTOC) $< --cpp_out=.
1415

1516
frame.piqi.proto: $(PIQIFILE)
1617
$(PIQI) to-proto $< -o $@
1718

18-
libtrace_a_SOURCES = frame.piqi.pb.h frame.piqi.pb.cc trace.container.cpp
19+
BUILT_SOURCES = $(PIQIFILEC)
1920

21+
libtrace_a_SOURCES = $(PIQIFILEC) trace.container.cpp
2022
utils_LDADD = libtrace.a -lprotobuf -lpthread
2123

2224
bin_PROGRAMS = readtrace copytrace

0 commit comments

Comments
 (0)