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