gitignore hidden files in the workspace
[rust-101.git] / Makefile
index 0061b2b9faec348e461089d05d15cb6af7cad8ec..c6c80eb1068eb9b0fa7a810db2a6779ef651c44b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -22,12 +22,13 @@ workspace: $(WORKSPACEFILES)
 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 > $@
+       @sed '/^\s*\/\/@/d;s|\(\s*\)\S.*/\*@\*/|\1unimplemented!()|' $< | sed -f dup-unimpl.sed > $@
 
 workspace/src/main.rs:
        # Don't touch this file
 
 # Crates
-crates:
+crates: $(WORKSPACEFILES)
        @cargo build
        @cd solutions && cargo build
+       @cd workspace && cargo build