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