1 2 3 4 5 6
#!/bin/bash -e src=${1%.o}.c redo-ifchange .compile .parse-depfile "$src" sed -n 's|.*@BUILD_DEP \(.*\)|\1|p' "$src" | tr '\n' '\0' | xargs -r0 redo-ifchange . ./.compile ./.parse-depfile "${1%.o}.d" | tr '\n' '\0' | xargs -r0 redo-ifchange