summaryrefslogtreecommitdiff
path: root/tools/notsd-move
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-09-15 01:31:03 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-09-15 01:31:03 -0400
commit3e439de4e3773f26c7efc8d84a57cf2530883739 (patch)
tree7fe8527efe10e2adb9df676e6c4df21c9b64c994 /tools/notsd-move
parent3c72c8d3ee67388336aca58c5afa3fb93a9c24c0 (diff)
stuff
Diffstat (limited to 'tools/notsd-move')
-rwxr-xr-xtools/notsd-move9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/notsd-move b/tools/notsd-move
index 0e8cc0dd87..5a907109bd 100755
--- a/tools/notsd-move
+++ b/tools/notsd-move
@@ -697,10 +697,6 @@ breakup_makefile() (
rm .tmp.move.all
sed -ri \
- -e '/^ \$\(AM_V_at\)\$\(MKDIR_P\) \$\(dir \$@\)/d' \
- -e 's/ \$\(CFLAGS\) / /g' \
- -e 's/ \$\(CPPFLAGS\) / /g' \
- -e 's/ \$\(AM_CPPFLAGS\) / $(sd.ALL_CPPFLAGS) /g' \
-e '/^[^# ]*:/ { s|\S+/|$(outdir)/|g }' \
src/libbasic/include/basic/Makefile \
src/libsystemd/src/Makefile \
@@ -745,8 +741,13 @@ breakup_makefile() (
fixup_makefile() {
sed -r \
+ -e '#### Specific complete strings #####' \
+ -e 's|\$\(CPP\)·\$\(CFLAGS\)·\$\(AM_CPPFLAGS\)·\$\(CPPFLAGS\)·|$(CPP) $(sd.ALL_CPPFLAGS) |g' \
+ -e '/^ \$\(AM_V_at\)\$\(MKDIR_P\) \$\(dir \$@\)/d' \
+ -e '#### General cases #################' \
-e '/^[^# ]*:/ { s|^(\s*)\S+/|\1$(outdir)/| }' \
-e 's|^if (.*)|ifneq ($(\1),)|' \
+ -e '/\bAM_(C|CPP|LD)FLAGS\b/d' \
-e 's|--version-script=.*/([^/]+)\.sym|--version-script=$(srcdir)/\1.sym|g'
}