diff --git a/Makeconfig b/Makeconfig index f625f76108..2c13c2073c 100644 --- a/Makeconfig +++ b/Makeconfig @@ -787,7 +787,7 @@ $(common-objpfx)sysd-sorted: $(..)scripts/gen-sorted.awk $(all-Depend-files) \ $(common-objpfx)sysd-dirs $(..)Makeconfig (files="$(all-Depend-files)"; \ for f in $$files; do \ - dir=`echo $$f | sed 's/^$(..)\(.*\)\/[^/]*$$/\1/'`; \ + dir=`echo $$f | sed 's@^$(..)\(.*\)/[^/]*$$@\1@'`; \ while read on; do \ echo "depend $$dir $$on"; \ done < $$f; \