aboutsummaryrefslogtreecommitdiffstats
path: root/default.o.do
blob: 88fe853b645a171c6e2cb5cd27c946a03ccf4907 (plain)
1
2
3
4
5
6
#!/bin/bash -e
redo-ifchg-pipe() { tr '\n' '\0' | xargs -r0 redo-ifchange; }
src=${1%.o}.c
redo-ifchange .compile .parse-deps "$src"
sed -n 's|.*@BUILD_DEP \(.*\)|\1|p' "$src" | redo-ifchg-pipe
. ./.compile | ./.parse-deps | redo-ifchg-pipe