projects
/
rust-101.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
also build workspace crate
[rust-101.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index 0061b2b9faec348e461089d05d15cb6af7cad8ec..2e7758b777338d4d70527fd76de1e2aa21978944 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-22,7
+22,9
@@
workspace: $(WORKSPACEFILES)
workspace/src/%.rs: src/%.rs Makefile dup-unimpl.sed
@mkdir -p .tmp/docs
@echo "$< -> $@"
workspace/src/%.rs: src/%.rs Makefile dup-unimpl.sed
@mkdir -p .tmp/docs
@echo "$< -> $@"
- @sed '/^\s*\/\/@/d;s|\(\s*\)[^\s].*/\*@\*/|\1unimplemented!()|' $< | sed -f dup-unimpl.sed > $@
+ @echo "// ***Remember to enable/add this part in \`main.rs\`!***" > $@
+ @echo >> $@
+ @sed '/^\s*\/\/@/d;s|\(\s*\)\S.*/\*@\*/|\1unimplemented!()|' $< | sed -f dup-unimpl.sed >> $@
workspace/src/main.rs:
# Don't touch this file
workspace/src/main.rs:
# Don't touch this file
@@
-31,3
+33,4
@@
workspace/src/main.rs:
crates:
@cargo build
@cd solutions && cargo build
crates:
@cargo build
@cd solutions && cargo build
+ @cd workspace && cargo build