* [PATCH v2] include/buildrules: substitute ".o" for ".lo" only at the very end
@ 2021-02-17 22:26 Markus Mayer
0 siblings, 0 replies; only message in thread
From: Markus Mayer @ 2021-02-17 22:26 UTC (permalink / raw)
To: Linux XFS; +Cc: Markus Mayer
To prevent issues when the ".o" extension appears in a directory path,
ensure that the ".o" -> ".lo" substitution is only performed for the
file extension immediately preceeding the ":" of a makefile rule.
Signed-off-by: Markus Mayer <mmayer@broadcom.com>
---
Change since v1:
- reworked the regex as suggested by David
https://www.spinics.net/lists/linux-xfs/msg49712.html
include/buildrules | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/buildrules b/include/buildrules
index 7a139ff07de8..f6663615d278 100644
--- a/include/buildrules
+++ b/include/buildrules
@@ -133,7 +133,7 @@ rmltdep:
$(Q)rm -f .ltdep
.ltdep: $(CFILES) $(HFILES)
- $(Q)$(MAKEDEP) $(CFILES) | $(SED) -e 's,^\([^:]*\)\.o,\1.lo,' > .ltdep
+ $(Q)$(MAKEDEP) $(CFILES) | $(SED) -e 's,^\([^:]*\)\.o: ,\1.lo: ,' > .ltdep
depend: rmdep .dep
--
2.25.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-17 22:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-17 22:26 [PATCH v2] include/buildrules: substitute ".o" for ".lo" only at the very end Markus Mayer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).