aboutsummaryrefslogtreecommitdiffstats
path: root/default.o.do
blob: 9135cb80de8f4439f9e28dde51249505a5cc4555 (plain)
1
2
3
4
5
#!/bin/bash
redo-ifchange "$0" "default.o.do" "$2.c"
. loadargs "compile"
gcc -std=c11 -MD -MF "$2.d" -c -o "$3" "${args[@]}" "$2.c"
redo-ifchange "$2.d" $(sed ':a;/\\$/{s/[^:]*: //;N;s/ \\\n//;ba}' <"$2.d")