about summary refs log tree commit diff
path: root/scripts/sysd-rules.awk
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/sysd-rules.awk')
-rw-r--r--scripts/sysd-rules.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/sysd-rules.awk b/scripts/sysd-rules.awk
index cc143345c6..cebc9d3e1b 100644
--- a/scripts/sysd-rules.awk
+++ b/scripts/sysd-rules.awk
@@ -53,7 +53,7 @@ BEGIN {
         if (target_pattern == "%") {
           command_suffix = "";
         } else {
-          prefix = gensub(/%/, "", "", target_pattern);
+          prefix = gensub(/%/, "", 1, target_pattern);
           command_suffix = " $(" prefix  "CPPFLAGS)";
         }
         target = "$(objpfx)" target_pattern o ":";