defer refrences until later; introduce testing in part03
[rust-101.git] / Makefile
index cb4172e8da0857e2c49d44fbcca3b2350fa2d9f1..706b1db48ac643b063dae9ae241c6218d5c0390a 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 -> raw$$file"; egrep -v "^[[:space:]]*// " "$$file" > "raw""$$file"; done