add 'rawsrc' target to generate raw sources (without the course comments)
[rust-101.git] / Makefile
1 FILES=$(wildcard src/*.rs)
2
3 all: docs rawsrc
4 .PHONY: docs rawsrc
5
6 docs:
7         @docco $(FILES) -l linear
8
9 rawsrc:
10         @mkdir -p rawsrc
11         @for file in $(FILES); do echo "$$file -> raw$$file"; egrep -v "^[[:space:]]*// " "$$file" > "raw""$$file"; done