X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/7858ea50a3c07211952b5d26c855d59a00d6dd92..816ab35bec9dec1571988fcf97e57a38a32f5ff5:/Makefile?ds=inline 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