diff options
Diffstat (limited to 'Makerules')
-rw-r--r-- | Makerules | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Makerules b/Makerules index f2c7a7d66d..15a0b0e7af 100644 --- a/Makerules +++ b/Makerules @@ -281,9 +281,11 @@ $(sed-remove-objpfx) > $(@:.d=.T) mv -f $(@:.d=.T) $@ endef ifneq (,$(objpfx)) -sed-remove-objpfx = -e 's@ $(subst .,\.,\ - $(subst @,\@,$(objpfx)))@ $$(objpfx)@g' \ - -e 's@^$(subst .,\.,$(subst @,\@,$(objpfx)))@$$(objpfx)@g' +# Continuation lines here are dangerous because they introduce spaces! +define sed-remove-objpfx +-e 's@ $(subst .,\.,$(subst @,\@,$(objpfx)))@ $$(objpfx)@g' \ +-e 's@^$(subst .,\.,$(subst @,\@,$(objpfx)))@$$(objpfx)@g' +endef endif # Figure out the source filenames in this directory. |