diff --git a/helpers-core/make-extract-targets.awk b/helpers-core/make-extract-targets.awk index 16f680f2436..17916e8b983 100644 --- a/helpers-core/make-extract-targets.awk +++ b/helpers-core/make-extract-targets.awk @@ -29,7 +29,11 @@ NR == 1, /^# +Make data base/ { next; } /^# +Variables/, /^# +Files/ { next; } # skip not-target blocks -/^# +Not a target/, /^$/ { next; } +/^# +Not a target/, /^$/ { + is_target_block = 0; + target = ""; + next; +} # The stuff above here describes lines that are not # explicit targets or not targets other than special ones