write_riemann: only compile .proto files when enabled
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 9 Aug 2015 13:52:33 +0000 (15:52 +0200)
committerMarc Fournier <marc.fournier@camptocamp.com>
Mon, 30 Nov 2015 21:51:51 +0000 (22:51 +0100)
If the write_riemann plugin is not enabled there's no
need to compile the protobuf files.

src/Makefile.am

index e82fe83..693228c 100644 (file)
@@ -1510,7 +1510,7 @@ endif
 
 # Protocol buffer for the "write_riemann" plugin.
 EXTRA_DIST += riemann.proto
-if HAVE_PROTOC_C
+if BUILD_PLUGIN_WRITE_RIEMANN
 CLEANFILES += riemann.pb-c.c riemann.pb-c.h
 
 BUILT_SOURCES += riemann.pb-c.c riemann.pb-c.h