X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/7858ea50a3c07211952b5d26c855d59a00d6dd92..767e5b9549d03685a601ccc2f32123f1dac618c6:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index cb4172e..bb5826c 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 -> rawsrc/$$file"; egrep -v "^[[:space:]]*// " "$$file" > "rawsrc/""$$file"; done