summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0c443a1d..8f907219 100644
--- a/Makefile
+++ b/Makefile
@@ -93,7 +93,8 @@ ABBREV = $(if $(VERBOSE),\
ABBREV3 = $(if $(VERBOSE),@:,@printf "%s %s -> %s\n" $(1) "$(3)" $(2))
define DEPGEN
-$(V)sed -e '1s/^/DEP_/' -e '1s/: [^ ]\+/ :=/' < $(1) > $(1:.d=.v)
+$(V)sed ':x; /\\$$/ { N; s/\\\n//; tx }' < $(1) | \
+ sed -e '1s/^/DEP_/' -e '1s/: [^ ]\+/ :=/' > $(1:.d=.v)
endef
define COMPILE_C