-SUBDIRS=kernel lufsd filesystems util include man
-DIST_SUBDIRS=kernel lufsd filesystems util include docs man
+SUBDIRS=macros kernel lufsd filesystems util include man
+DIST_SUBDIRS=macros kernel lufsd filesystems util include docs man
+## to automatically rebuild aclocal.m4 if any of the macros in
+## `macros/' change
+@MAINT@include macros/macros.dep
+@MAINT@macros/macros.dep: macros/Makefile.am
+@MAINT@ cd macros && $(MAKE) macros.dep
-EXTRA_DIST=Contributors lufs.spec.in
+EXTRA_DIST= \
+ Contributors \
+ lufs.spec.in \
+ cvs2cl-usermap \
+ autogen.pl \
+ Makefile-head.am \
+ ChangeLog.captive \
+ .vimrc \
+ debian/changelog.in \
+ debian/configure-subst-x.patch \
+ debian/control \
+ debian/copyright \
+ debian/lufs.conffiles \
+ debian/lufs.dirs \
+ debian/lufs.docs \
+ debian/lufs.files \
+ debian/postinst \
+ debian/postrm \
+ debian/prerm \
+ debian/rules \
+ NEWS.captive
-EXTRA_DIST+= \
- ChangeLog.captive
+# Needed for dpkg-buildpackage(1):
+EXTRA_DIST+=debian/changelog
MAINTAINERCLEANFILES= \
ChangeLog.captive