projects
/
rust-101.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e7fafa7
)
Makefile Magic
author
Ralf Jung
<post@ralfj.de>
Tue, 23 Jun 2015 16:00:43 +0000
(18:00 +0200)
committer
Ralf Jung
<post@ralfj.de>
Tue, 23 Jun 2015 16:00:43 +0000
(18:00 +0200)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index bb5826ce06fae5684df7d76688c0470ebefb24ff..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:
- @./pycco-rs $(FILES)
+docs: $(DOCFILES)
+
+docs/%.html: src/%.rs
+ @./pycco-rs $^
rawsrc:
@mkdir -p rawsrc
@for file in $(FILES); do echo "$$file -> rawsrc/$$file"; egrep -v "^[[:space:]]*// " "$$file" > "rawsrc/""$$file"; done
rawsrc:
@mkdir -p rawsrc
@for file in $(FILES); do echo "$$file -> rawsrc/$$file"; egrep -v "^[[:space:]]*// " "$$file" > "rawsrc/""$$file"; done
+
+crates:
+ @cargo build
+ @cd solutions && cargo build