X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/53260b4082f1c76b657845560c273b853a166fab..bbab0538d2d0ddfdc0ef3f73e342c2d1f7222835:/Makefile?ds=inline diff --git a/Makefile b/Makefile index cb4172e..830ba37 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,11 @@ -all: docs -.PHONY: docs +FILES=$(wildcard src/*.rs) + +all: docs rawsrc +.PHONY: docs rawsrc docs: - docco src/*.rs -l linear + @docco $(FILES) -l linear + +rawsrc: + @mkdir -p rawsrc + @for file in $(FILES); do echo "$$file -> raw$$file"; egrep -v "^[[:space:]]*// " "$$file" > "raw""$$file"; done