summaryrefslogtreecommitdiff
path: root/lib/am/configure.am
diff options
context:
space:
mode:
Diffstat (limited to 'lib/am/configure.am')
-rw-r--r--lib/am/configure.am6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/am/configure.am b/lib/am/configure.am
index 2dae4d167..92f96162d 100644
--- a/lib/am/configure.am
+++ b/lib/am/configure.am
@@ -71,7 +71,11 @@ $(am.relpath.makefile): %MAKEFILE-DEPS% $(top_builddir)/config.status
esac;
## Avoid the "deleted header file" problem for the dependencies.
-?HAVE-MAKEFILE-IN-DEPS?%MAKEFILE-IN-DEPS%:
+## Add the trailing "$(am__empty)" to trick Automake into not spuriously
+## complaining about "duplicated targets" in case the %MAKEFILE-IN-DEPS%
+## list expands to a single target that is also declared in some
+## user-defined rule.
+?HAVE-MAKEFILE-IN-DEPS?%MAKEFILE-IN-DEPS% $(am__empty):
am.dist.common-files += $(am.relpath.makefile.am)