tuning, exercises and solutions
[rust-101.git] / Makefile
index cb4172e8da0857e2c49d44fbcca3b2350fa2d9f1..bb5826ce06fae5684df7d76688c0470ebefb24ff 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,11 @@
-all: docs
-.PHONY: docs
+FILES=$(wildcard src/*.rs)
+
+all: docs rawsrc
+.PHONY: docs rawsrc
 
 docs:
 
 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