build: don't prefix the RHS of "GPERF = ..." with "lib/"
authorJim Meyering <meyering@redhat.com>
Fri, 14 Sep 2012 16:19:39 +0000 (18:19 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 14 Sep 2012 16:42:50 +0000 (18:42 +0200)
* gl/build-aux/prefix-gnulib-mk (prefix_assignment): Exempt
the RHS of a "GPERF = ..." assignment from lib/ prefixing.

gl/build-aux/prefix-gnulib-mk

index 38471a9..f0806d7 100755 (executable)
@@ -91,7 +91,11 @@ sub prefix_assignment ($$)
 
   # Some variables are initialized by gnulib.mk, and we don't want
   # that.  Change '=' to '+='.
-  if ($lhs_and_assign_op =~
+  if ($lhs_and_assign_op =~ /^GPERF =$/)
+    {
+      # Do not change the RHS, which specifies the GPERF program.
+    }
+  elsif ($lhs_and_assign_op =~
       /^(SUBDIRS|EXTRA_DIST|BUILT_SOURCES|SUFFIXES|MOSTLYCLEANFILES
          |CLEANFILES|DISTCLEANFILES|MAINTAINERCLEANFILES|AM_CFLAGS
          |AM_CPPFLAGS|AM_GNU_GETTEXT)\ =/x)