Makefile (465B)
1 CC = clang 2 all: 3 for files in echo false head true yes ; do \ 4 $(CC) src/$${files}.c -o bin/$${files} ; \ 5 done 6 7 clean: 8 rm bin/* 9 10 cat: 11 $(CC) src/cat.c -o bin/cat 12 echo: 13 $(CC) src/echo.c -o bin/echo 14 false: 15 $(CC) src/false.c -o bin/false 16 head: 17 $(CC) src/head.c -o bin/head 18 seq: 19 $(CC) src/seq.c -o bin/seq 20 true: 21 $(CC) src/true.c -o bin/true 22 wordcount: 23 $(CC) src/wc.c -o bin/wc 24 yes: 25 $(CC) src/yes.c -o bin/yes 26 27 install: 28 echo "Please don't, just really don't"