summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 37eb677d..521b894f 100644
--- a/Makefile
+++ b/Makefile
@@ -112,7 +112,11 @@ ABBREVN = $(if $(VERBOSE),\
ABBREV3 = $(if $(VERBOSE),@:,@printf "%s %s -> %s\n" $(1) "$(3)" $(2))
define DEPGEN
-$(V)sed ':x; /\\$$/ { N; s/\\\n//; tx }' < $(1) | \
+$(V)sed -e ':x' \
+ -e '/\\$$/ {' \
+ -e 'N; s/\\\n//' \
+ -e 'tx' \
+ -e '}' < $(1) | \
sed -e '1s/^/DEP_/' -e '1s/: [^ ]\+/ :=/' > $(1:.d=.v)
endef