X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/7858ea50a3c07211952b5d26c855d59a00d6dd92..41c94f98f6cf8b5a05a8c3eb8d13bb73fc4fda3f:/Makefile diff --git a/Makefile b/Makefile index cb4172e..706b1db 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 + @./pycco-rs $(FILES) + +rawsrc: + @mkdir -p rawsrc + @for file in $(FILES); do echo "$$file -> raw$$file"; egrep -v "^[[:space:]]*// " "$$file" > "raw""$$file"; done