src/Makefile.am: Fix build-dependencies for the pinba plugin. collectd-4.10.0
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sat, 1 May 2010 09:14:32 +0000 (11:14 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sat, 1 May 2010 09:14:32 +0000 (11:14 +0200)
Using BUILT_SOURCES, pinba.pb-c.[ch] are built *before* the regular
build step.

src/Makefile.am

index 8d26d19..5290ab3 100644 (file)
@@ -107,6 +107,8 @@ collectd_nagios_DEPENDENCIES = libcollectdclient/libcollectdclient.la
 
 pkglib_LTLIBRARIES = 
 
+BUILT_SOURCES = 
+
 if BUILD_PLUGIN_APACHE
 pkglib_LTLIBRARIES += apache.la
 apache_la_SOURCES = apache.c
@@ -808,6 +810,7 @@ collectd_DEPENDENCIES += perl.la
 endif
 
 if BUILD_PLUGIN_PINBA
+BUILT_SOURCES += pinba.pb-c.c pinba.pb-c.h
 pkglib_LTLIBRARIES += pinba.la
 pinba_la_SOURCES = pinba.c pinba.pb-c.c pinba.pb-c.h
 pinba_la_LDFLAGS = -module -avoid-version