Files
ocaml-sexpr/deps.sh

13 lines
271 B
Bash

OCAMLDEP=$1
shift
echo ninja_dyndep_version = 1
$OCAMLDEP -one-line $@ | while read d; do
outs="$(echo "$d" | cut -d':' -f1)"
ins="$(echo "$d" | cut -d':' -f2)"
echo -ne "build build/$outs : dyndep |"
for f in $ins; do
echo -ne " build/$f"
done
echo
done