Test Debian packaging at "make distcheck" time.
[openvswitch] / Makefile.am
1 AUTOMAKE_OPTIONS=foreign
2 ACLOCAL_AMFLAGS = -I m4
3 SUBDIRS = \
4         lib \
5         datapath \
6         secchan \
7         controller \
8         utilities \
9         switch \
10         tests \
11         include \
12         third-party \
13         debian
14 if HAVE_EXT
15 SUBDIRS += ext
16 endif
17
18 DIST_SUBDIRS = $(SUBDIRS)
19
20 EXTRA_DIST = README.hwtables
21
22 if HAVE_DPKG_BUILDPACKAGE
23 distcheck-hook: 
24         cd $(srcdir) && dpkg-buildpackage -rfakeroot -us -uc
25         cd $(srcdir) && fakeroot ./debian/rules clean
26 else
27 distcheck-hook: 
28 endif