Add t/example, a basic example build environment suitable for a tutorial.

This commit is contained in:
Avery Pennarun 2010-11-17 19:49:41 -08:00
commit eae3e7cdef
14 changed files with 51 additions and 8 deletions

10
t/example/CC.do Normal file
View file

@ -0,0 +1,10 @@
redo-ifchange config.sh
. ./config.sh
cat <<-EOF
redo-ifchange \$1.c
gcc -MD -MF \$3.deps.tmp -o \$3 -c \$1.c
DEPS=\$(sed -e "s/^\$3://" -e 's/\\\\//g' <\$3.deps.tmp)
rm -f \$3.deps.tmp
redo-ifchange \$DEPS
EOF
chmod +x $3