-SUBDIRS = config src templates doc
-DIST_SUBDIRS = config src templates doc
-EXTRA_DIST = autogen.sh lxc.spec CONTRIBUTING MAINTAINERS ChangeLog
+LIBTOOL_DEPS = @LIBTOOL_DEPS@
+SUBDIRS = config src templates doc hooks
+DIST_SUBDIRS = config src templates doc hooks
+EXTRA_DIST = \
+ autogen.sh \
+ lxc.spec \
+ CONTRIBUTING \
+ MAINTAINERS