]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool: minor --gnu-make fixups
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Mar 2017 22:50:44 +0000 (15:50 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Mar 2017 22:52:42 +0000 (15:52 -0700)
* gnulib-tool (func_emit_lib_Makefile_am):
Remove useless code that was a blind alley during implementation.
Problem reported by Thien-Thi Nguyen in:
http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00029.html
(func_import): Note the "--gnu-make" option in the output comment.

ChangeLog
gnulib-tool

index 3e79fccfc1055993e13f6e7318cb34ba75db64be..c468516b8715701f20b968478f46a003dd6f8987 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
+
+       gnulib-tool: minor --gnu-make fixups
+       * gnulib-tool (func_emit_lib_Makefile_am):
+       Remove useless code that was a blind alley during implementation.
+       Problem reported by Thien-Thi Nguyen in:
+       http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00029.html
+       (func_import): Note the "--gnu-make" option in the output comment.
+
 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
 
        gnulib-tool: new option --gnu-make
index 18b801ec30fae383fe9b707f445231f394e24416..3ff40b8790266390ebe28aba234cbcabb787492d 100755 (executable)
@@ -3650,25 +3650,6 @@ func_emit_lib_Makefile_am ()
   fi
   cat "$tmp"/allsnippets \
     | sed -e 's|\$(top_srcdir)/build-aux/|$(top_srcdir)/'"$auxdir"'/|g'
-  # Determine variables the automake snippet mentions.
-  if false && $gnu_make; then
-    sed_get_makefile_vars='
-      :again
-      /@/!d
-      s/^[^@]*@//
-      h
-      /^[a-zA-Z_][a-zA-Z_0-9]*@/{
-        s/@.*//p
-        g
-        s/^[^@]*@//
-        h
-      }
-      g
-      b again
-    '
-    substs=`func_get_automake_snippet "$module" \
-            | LC_ALL=C sed -e "$sed_get_makefile_vars"`
-  fi
   echo
   echo "mostlyclean-local: mostlyclean-generic"
   echo "       @for dir in '' \$(MOSTLYCLEANDIRS); do \\"
@@ -5134,6 +5115,9 @@ s,^\(.................................................[^ ]*\) *,
       func_append actioncmd " --lgpl=$lgpl"
     fi
   fi
+  if test -n "$gnu_make"; then
+    func_append actioncmd " --gnu-make"
+  fi
   if test -n "$makefile_name"; then
     func_append actioncmd " --makefile-name=$makefile_name"
   fi