mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-09 14:48:08 -05:00
Implement standalone Makefiles for most of the bins and rework main Makefile.
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user