New function dhclient_get_netdev().
[openvswitch] / Makefile.am
index 4c492644bbb1dac4bafc7682c264f6f3dff2f6a6..658070b3ebc1c75f0317332625f3ac0a8c65dae8 100644 (file)
@@ -1,4 +1,6 @@
-AUTOMAKE_OPTIONS=foreign
+# The goal of -Wno-syntax here is just to suppress the Automake warning
+# about overriding distdir, below.
+AUTOMAKE_OPTIONS=foreign -Wno-syntax
 ACLOCAL_AMFLAGS = -I m4
 SUBDIRS = \
        lib \
@@ -12,9 +14,18 @@ SUBDIRS = \
        third-party \
        debian
 if HAVE_EXT
-SUBDIRS += ext
+SUBDIRS += $(EXT)
+distdir = $(PACKAGE)+ext-$(VERSION)
 endif
 
 DIST_SUBDIRS = $(SUBDIRS)
 
 EXTRA_DIST = README.hwtables
+
+if HAVE_DPKG_BUILDPACKAGE
+distcheck-hook: 
+       cd $(srcdir) && dpkg-buildpackage -rfakeroot -us -uc
+       cd $(srcdir) && fakeroot ./debian/rules clean
+else
+distcheck-hook: 
+endif