#!/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