Test Debian packaging at "make distcheck" time.
[openvswitch] / Makefile.am
index c678d90268edfcfda93375b73e6b2aabaebb8bee..96f2145d819045cbfb89936c7d014d73738cd5c2 100644 (file)
@@ -9,7 +9,8 @@ SUBDIRS = \
        switch \
        tests \
        include \
-       third-party
+       third-party \
+       debian
 if HAVE_EXT
 SUBDIRS += ext
 endif
@@ -17,3 +18,11 @@ 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