apenwarr-redo/t/example
Avery Pennarun a2bce72255 Simplify autodependency examples.
Turns out we don't need sed to process the output of gcc -MD.  We can just
do this:

	read DEPS <filename.deps

The 'read' command in sh actually handles backslashes correctly, so we don't
have to sed them out after all.  And then a simple ${DEPS#*:} removes the
"target:" prefix from the dependency line, and we're done!
2011-02-21 04:00:53 -08:00
..
.gitignore Add t/example, a basic example build environment suitable for a tutorial. 2010-11-18 22:48:46 -08:00
all.do Add t/example, a basic example build environment suitable for a tutorial. 2010-11-18 22:48:46 -08:00
CC.do Simplify autodependency examples. 2011-02-21 04:00:53 -08:00
clean.do Add t/example, a basic example build environment suitable for a tutorial. 2010-11-18 22:48:46 -08:00
config.sh Add t/example, a basic example build environment suitable for a tutorial. 2010-11-18 22:48:46 -08:00
default.o.do Add t/example, a basic example build environment suitable for a tutorial. 2010-11-18 22:48:46 -08:00
hello.do Add t/example, a basic example build environment suitable for a tutorial. 2010-11-18 22:48:46 -08:00
main.c Add t/example, a basic example build environment suitable for a tutorial. 2010-11-18 22:48:46 -08:00
Makefile Add t/example, a basic example build environment suitable for a tutorial. 2010-11-18 22:48:46 -08:00
mystr.c Add t/example, a basic example build environment suitable for a tutorial. 2010-11-18 22:48:46 -08:00
mystr.h Add t/example, a basic example build environment suitable for a tutorial. 2010-11-18 22:48:46 -08:00