Implement standalone Makefiles for most of the bins and rework main Makefile.

This commit is contained in:
parazyd
2023-08-29 10:42:20 +02:00
parent 39e9d77e67
commit 41bf60570a
21 changed files with 394 additions and 74 deletions

View File

@@ -1,16 +0,0 @@
#!/bin/sh
set -e
CARGO="${CARGO:-cargo +nightly}"
toplevel="$(git rev-parse --show-toplevel)"
dirs="$(grep '"bin/' "$toplevel/Cargo.toml" | grep -v '#' | tr -d '", \t')"
bins=""
for i in $dirs; do
bins="$bins $(grep '^name = ' "$i/Cargo.toml" | cut -d' ' -f3 | tr -d '"')"
done
bins="$(echo "$bins" | tr ' ' '\n' | sort -u | tr '\n' ' ')"
make CARGO="$CARGO" BINS="$bins"