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