Test Debian packaging at "make distcheck" time.
[openvswitch] / Makefile.am
index 4644b057344da49823a03a0fbf8bb509908ed599..96f2145d819045cbfb89936c7d014d73738cd5c2 100644 (file)
@@ -1,6 +1,28 @@
 AUTOMAKE_OPTIONS=foreign
-SUBDIRS = lib datapath secchan controller
-if HAVE_IF_PACKET
-SUBDIRS += switch
+ACLOCAL_AMFLAGS = -I m4
+SUBDIRS = \
+       lib \
+       datapath \
+       secchan \
+       controller \
+       utilities \
+       switch \
+       tests \
+       include \
+       third-party \
+       debian
+if HAVE_EXT
+SUBDIRS += ext
+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
-SUBDIRS += utilities tests include third-party