netapp plugin: Fix compilation problems.
[collectd.git] / Makefile.am
index 39b12b1..03bdd39 100644 (file)
@@ -1,11 +1,23 @@
-AUTOMAKE_OPTIONS = dist-bzip2
+ACLOCAL_AMFLAGS = -I libltdl/m4
 
-SUBDIRS = src
+SUBDIRS =
 
-EXTRA_DIST = collectd.spec contrib debian
+if BUILD_INCLUDED_LTDL
+SUBDIRS += libltdl
+endif
 
-dist-hook:
-       find $(distdir) -type d -name '.svn' | xargs rm -rf
+SUBDIRS += proto src bindings .
+
+AM_CPPFLAGS = $(LTDLINCL)
+
+EXTRA_DIST = contrib version-gen.sh testwrapper.sh
 
 install-exec-hook:
        $(mkinstalldirs) $(DESTDIR)$(localstatedir)/run
+       $(mkinstalldirs) $(DESTDIR)$(localstatedir)/lib/$(PACKAGE_NAME)
+       $(mkinstalldirs) $(DESTDIR)$(localstatedir)/log
+
+maintainer-clean-local:
+       -rm -f -r libltdl
+       -rm -f INSTALL
+       -rm -f aclocal.m4