Add t/example, a basic example build environment suitable for a tutorial.
This commit is contained in:
parent
2b71e662cb
commit
eae3e7cdef
14 changed files with 51 additions and 8 deletions
10
t/example/CC.do
Normal file
10
t/example/CC.do
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue