makefile: use SED from configure in most places.

Some simple cases are left alone, but anything called from make uses $SED.
This commit is contained in:
Sangbida Chaudhuri
2025-10-14 10:36:43 +10:30
committed by Rusty Russell
parent 23784a4ebd
commit 7b1c4874ed
7 changed files with 34 additions and 31 deletions

View File

@@ -277,9 +277,9 @@ plugins/sql-schema_gen.h: $(SQL_SCHEMA_PARTS)
SEP=""; \
echo "\"{"; \
for l in $(SQL_LISTRPCS); do \
echo "$$SEP\"$$l\":{\"properties\":$$(cat plugins/sql-schema_$${l}_gen.h)}" | sed s/\"/\\\"/g; \
echo "$$SEP\"$$l\":{\"properties\":$$(cat plugins/sql-schema_$${l}_gen.h)}" | $(SED) s/\"/\\\"/g; \
SEP=","; \
done | sed "s/\\\"/\\\\\"/g"; \
done | $(SED) "s/\\\"/\\\\\"/g"; \
echo "}\"") | tr -d " \n" > $@ \
)