summaryrefslogtreecommitdiffstats
path: root/src/Makefile.housekeeping
diff options
context:
space:
mode:
authorTobias Kortkamp2018-11-25 17:57:13 +0100
committerMichael Brown2020-07-21 16:51:19 +0200
commit8d243e65c3ef61353b5284ec4c0e3e9520b43eb6 (patch)
tree11a87fe0381e7100e654bb6d38d25fa7f8b28970 /src/Makefile.housekeeping
parent[wpa] Fix erroneous debug message in wpa_derive_ptk (diff)
downloadipxe-8d243e65c3ef61353b5284ec4c0e3e9520b43eb6.tar.gz
ipxe-8d243e65c3ef61353b5284ec4c0e3e9520b43eb6.tar.xz
ipxe-8d243e65c3ef61353b5284ec4c0e3e9520b43eb6.zip
[build] Fix a GNUism that FreeBSD's sed(1) cannot deal with
At the moment '\s*' is silently interpreted as just 's*', but in the future it will be an error: sed: 1: "s/\.o\s*:/_DEPS +=/": RE error: trailing backslash (\) cf. https://bugs.freebsd.org/229925 Signed-off-by: Tobias Kortkamp <t@tobik.me> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/Makefile.housekeeping')
-rw-r--r--src/Makefile.housekeeping2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping
index b6c61c11..134becd5 100644
--- a/src/Makefile.housekeeping
+++ b/src/Makefile.housekeeping
@@ -856,7 +856,7 @@ define deps_template_parts
@$(MKDIR) -p $(BIN)/deps/$(dir $(1))
$(Q)$(CPP) $(CFLAGS) $(CFLAGS_$(2)) $(CFLAGS_$(3)) -DOBJECT=$(3) \
-Wno-error -M $(1) -MG -MP | \
- sed 's/\.o\s*:/_DEPS +=/' > $(BIN)/deps/$(1).d
+ sed 's/\.o[[:blank:]]*:/_DEPS +=/' > $(BIN)/deps/$(1).d
endef
# rules_template : generate rules for a given source file