summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2017-02-01 23:49:56 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2017-02-01 23:51:56 -0500
commite1aba20488181b0553f1eb7f20b02736a992bf6f (patch)
tree2099917c08f152fa1402b3cb5fbae42db21dbac7 /tools
parent2cdd7acfc2df072b80d319490fbff8bb583d311e (diff)
Add a GNUmakefile to apply the MAKEFLAGS we want.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/notsd-fixup6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/notsd-fixup b/tools/notsd-fixup
index 71b3bf4dfa..820d2fec17 100755
--- a/tools/notsd-fixup
+++ b/tools/notsd-fixup
@@ -15,6 +15,12 @@ main() {
find "$@" -type f -name Makefile -print0 |
xargs -r0 sh -c "$0--makefiles \"\$@\" || exit 255" --
+ # GNUmakefiles
+ find "$@" -type l -name GNUmakefile -delete
+ # It's OK for the top-level one to fail
+ find "$@" -type f -name Makefile -printf '%h\0' |
+ xargs -r0 -I {} ln -s -t {} GNUmakefile
+
# C includes
rm -rf -- "$0"--includes.cache
find "$@" \( -name '*.h' -o -name '*.c' -o -name '*.gperf' -o -name '*.gperf.m4' \) -type f -print0 |