summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-12-03 11:00:53 -0800
committerKarl Berry <karl@freefriends.org>2020-12-03 11:00:53 -0800
commite83520ff1316f25bcf7108d7d0b9ae5b8b4ba222 (patch)
treec09990561bae3aa2391be964246c39aaad3201c6 /bin
parentb35822b5a67eaae45db82fdaf833c31ab83ea6c4 (diff)
downloadautomake-e83520ff1316f25bcf7108d7d0b9ae5b8b4ba222.tar.gz
warnings: be less forceful about a missing subdir-objects option.
This change somewhat ameliorates https://bugs.gnu.org/20699. * bin/automake.in (handle_single_transform): change forward-incompatibility message for subdir-objects to be less draconian and less certain that the change will ever be made. * t/subobj.sh: message text has changed. * doc/automake.texi (Program and Library Variables): mention the unfortunate fact that one directory can clean in a sibling, subdir-objects notwithstanding.
Diffstat (limited to 'bin')
-rw-r--r--bin/automake.in17
1 files changed, 11 insertions, 6 deletions
diff --git a/bin/automake.in b/bin/automake.in
index ce06437db..96e8c634c 100644
--- a/bin/automake.in
+++ b/bin/automake.in
@@ -1839,22 +1839,27 @@ sub handle_single_transform
{
# Since the next major version of automake (2.0) will
# make the behaviour so far only activated with the
- # 'subdir-object' option mandatory, it's better if we
+ # 'subdir-objects' option mandatory, it's better if we
# start warning users not using that option.
# As suggested by Peter Johansson, we strive to avoid
# the warning when it would be irrelevant, i.e., if
# all source files sit in "current" directory.
+ #
+ # There are problems with making this change; see
+ # https://bugs.gnu.org/20699 before making
+ # subdir-objects, let alone unconditional.
+ # (Making it non-overridable seems especially wrong.)
+ #
msg_var 'unsupported', $var,
"source file '$full' is in a subdirectory,"
. "\nbut option 'subdir-objects' is disabled";
msg 'unsupported', INTERNAL, <<'EOF', uniq_scope => US_GLOBAL;
possible forward-incompatibility.
-At least a source file is in a subdirectory, but the 'subdir-objects'
+At least one source file is in a subdirectory, but the 'subdir-objects'
automake option hasn't been enabled. For now, the corresponding output
-object file(s) will be placed in the top-level directory. However,
-this behaviour will change in future Automake versions: they will
-unconditionally cause object files to be placed in the same subdirectory
-of the corresponding sources.
+object file(s) will be placed in the top-level directory. However, this
+behavior may change in a future Automake major version, with object
+files being placed in the same subdirectory as the corresponding sources.
You are advised to start using 'subdir-objects' option throughout your
project, to avoid future incompatibilities.
EOF