Remove the GNU awk specifics to allow the use of a standard
awk program. Fixes build errors on older distros.
Signed-off-by: Geoff Levand <geoff@infradead.org>
extract_config = $(srcdir)/extract-config.awk
%.embedded-config.c: %.c $(extract_config)
- gawk --file=$(extract_config) $^ > $@
+ $(AWK) -f $(extract_config) $< > $@
EXTRA_DIST = $(check_DATA) $(extract_config)
config=0
}
-/^#if\s*0\s*\/\*\s*PARSER_EMBEDDED_CONFIG/ {
+/^#if[ \t]*0[ \t]*\/\*[ \t]*PARSER_EMBEDDED_CONFIG/ {
config=1
print "#include <stdlib.h>"
print "const char __embedded_config[] = "