Suppress Automake warning about overriding distdir.
[sliver-openvswitch.git] / Makefile.am
1 # The goal of -Wno-syntax here is just to suppress the Automake warning
2 # about overriding distdir, below.
3 AUTOMAKE_OPTIONS=foreign -Wno-syntax
4 ACLOCAL_AMFLAGS = -I m4
5 SUBDIRS = \
6         lib \
7         datapath \
8         secchan \
9         controller \
10         utilities \
11         switch \
12         tests \
13         include \
14         third-party \
15         debian
16 if HAVE_EXT
17 SUBDIRS += ext
18 distdir = $(PACKAGE)+ext-$(VERSION)
19 endif
20
21 DIST_SUBDIRS = $(SUBDIRS)
22
23 EXTRA_DIST = README.hwtables
24
25 if HAVE_DPKG_BUILDPACKAGE
26 distcheck-hook: 
27         cd $(srcdir) && dpkg-buildpackage -rfakeroot -us -uc
28         cd $(srcdir) && fakeroot ./debian/rules clean
29 else
30 distcheck-hook: 
31 endif