aboutsummaryrefslogtreecommitdiffstats
path: root/.compile.do
blob: 2a8d9329d227f2b985fbe7436f258dd981dc98b7 (plain)
1
2
3
4
5
6
7
8
#!/bin/bash -e
redo-ifchange .config.rc
. ./.config.rc
exec >"$3"
echo "# generated by $0"
declare -p CC CFLAGS CPPFLAGS
echo '"$CC" -MMD -MF "${1%.o}.d" "${CFLAGS[@]}" "${CPPFLAGS[@]}" -c -o "$3" "${1%.o}.c"'
if command -v redo-stamp &>/dev/null; then redo-stamp <"$3"; fi