summaryrefslogtreecommitdiff
path: root/Makefile.maint
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.maint')
-rw-r--r--Makefile.maint9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile.maint b/Makefile.maint
index c08ed12cf..49aa45349 100644
--- a/Makefile.maint
+++ b/Makefile.maint
@@ -57,6 +57,9 @@ aclocal-files: configure.in m4/Makefile.am
-include aclocal-files
-# Override default rule to use --acdir option
-$(srcdir)/aclocal.m4: configure.in $(acfiles)
- cd $(srcdir) && aclocal -I $(acdir)
+# Regenerate aclocal.m4 any time one of the m4/*.m4 files changes.
+$(ACLOCAL_M4): $(acfiles)
+
+# Make aclocal use `-I m4'.
+# This is used in Makefile.maint.
+ACLOCAL := $(ACLOCAL) -I $(acdir)