2010-11-17 19:49:41 -08:00
|
|
|
redo-ifchange config.sh
|
|
|
|
|
. ./config.sh
|
2010-12-11 00:29:04 -08:00
|
|
|
exec >$3
|
2010-11-17 19:49:41 -08:00
|
|
|
cat <<-EOF
|
|
|
|
|
redo-ifchange \$1.c
|
2011-02-21 03:57:48 -08:00
|
|
|
gcc $CFLAGS -MD -MF \$3.deps -o \$3 -c \$1.c
|
|
|
|
|
read DEPS <\$3.deps
|
|
|
|
|
rm -f \$3.deps
|
|
|
|
|
redo-ifchange \${DEPS#*:}
|
2010-11-17 19:49:41 -08:00
|
|
|
EOF
|
|
|
|
|
chmod +x $3
|