summaryrefslogtreecommitdiff
path: root/gnulib-tool
diff options
context:
space:
mode:
Diffstat (limited to 'gnulib-tool')
-rwxr-xr-xgnulib-tool6
1 files changed, 3 insertions, 3 deletions
diff --git a/gnulib-tool b/gnulib-tool
index 2870c2984a..0d4f246d8c 100755
--- a/gnulib-tool
+++ b/gnulib-tool
@@ -3729,9 +3729,9 @@ func_emit_lib_Makefile_am ()
# Replace NMD, so as to remove redundant "$(MKDIR_P) '.'" invocations.
# The logic is similar to how we define gl_source_base_prefix.
if $automake_subdir; then
- sed_eliminate_NMD='s/@NMD@//'
+ sed_eliminate_NMD='s/@NMD@//;/@!NMD@/d'
else
- sed_eliminate_NMD='/@NMD@/d'
+ sed_eliminate_NMD='/@NMD@/d;s/@!NMD@//'
fi
if $for_test; then
# When creating a package for testing: Attempt to provoke failures,
@@ -4109,7 +4109,7 @@ func_emit_tests_Makefile_am ()
fi
# Replace NMD, so as to remove redundant "$(MKDIR_P) '.'" invocations.
# The logic is similar to how we define gl_source_base_prefix.
- sed_eliminate_NMD='/@NMD@/d'
+ sed_eliminate_NMD='/@NMD@/d;s/@!NMD@//'
if $for_test; then
# When creating a package for testing: Attempt to provoke failures,
# especially link errors, already during "make" rather than during