-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