summaryrefslogtreecommitdiff
path: root/move.sh
diff options
context:
space:
mode:
Diffstat (limited to 'move.sh')
-rwxr-xr-xmove.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/move.sh b/move.sh
index bbcfe05384..869d315811 100755
--- a/move.sh
+++ b/move.sh
@@ -239,7 +239,11 @@ fixup_makefiles() (
-e 's/ \$\(AM_CPPFLAGS\) / $(ALL_CPPFLAGS) /g' \
-e '/^[^# ]*:/ { s|\S+/|$(outdir)/|g }' \
src/libbasic/Makefile \
- src/libsystemd/libsystemd-journal-internal/Makefile
+ src/libsystemd/libsystemd-journal-internal/Makefile \
+ src/udev/Makefile
+ find -type f -name Makefile|while read -r filename; do
+ sed -r -i "s|(/\.\.)*/config.mk|/$(realpath -ms --relative-to="${filename%/*}" config.mk)|" "$filename"
+ done
)
move() (