Ignore generated files in debian/.
[openvswitch] / Makefile.am
index c678d90268edfcfda93375b73e6b2aabaebb8bee..782ce711b701d695ab3a3840d0f9d7aace300e2e 100644 (file)
@@ -9,11 +9,21 @@ SUBDIRS = \
        switch \
        tests \
        include \
-       third-party
+       third-party \
+       debian
 if HAVE_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