projects
/
rust-101.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix the main file(s)
[rust-101.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index 830ba375e150607e20fd9b0e9dcdbf7dffd966de..eb1851e73d17898b1c95503cde6d469e6dbb468e 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,11
+1,18
@@
FILES=$(wildcard src/*.rs)
FILES=$(wildcard src/*.rs)
+DOCFILES=$(addsuffix .html,$(addprefix docs/,$(notdir $(basename $(FILES)))))
-all: docs
rawsrc
-.PHONY: docs rawsrc
+all: docs
crates
+.PHONY: docs rawsrc
crates
-docs:
- @docco $(FILES) -l linear
+docs: $(DOCFILES)
+
+docs/%.html: src/%.rs
+ @./pycco-rs $^
rawsrc:
@mkdir -p rawsrc
rawsrc:
@mkdir -p rawsrc
- @for file in $(FILES); do echo "$$file -> raw$$file"; egrep -v "^[[:space:]]*// " "$$file" > "raw""$$file"; done
+ @for file in $(FILES); do echo "$$file -> rawsrc/$$file"; egrep -v "^[[:space:]]*// " "$$file" > "rawsrc/""$$file"; done
+
+crates:
+ @cargo build
+ @cd solutions && cargo build