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
|
2011-12-31 02:45:38 -05:00
|
|
|
redo-ifchange \$2.c
|
|
|
|
|
gcc $CFLAGS -MD -MF \$3.deps -o \$3 -c \$2.c
|
2011-02-21 03:57:48 -08:00
|
|
|
read DEPS <\$3.deps
|
|
|
|
|
rm -f \$3.deps
|
|
|
|
|
redo-ifchange \${DEPS#*:}
|
2010-11-17 19:49:41 -08:00
|
|
|
EOF
|
|
|
|
|
chmod +x $3
|