X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/8eb6aed01c01ae099e12fd9bae959840667222f8..3530068c5bbcbd9185757369dd23b9edb3bbc9ad:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index 8d8b5e4..a213c07 100644 --- a/Makefile +++ b/Makefile @@ -8,14 +8,14 @@ all: docs workspace crates ## Documentation docs: $(DOCFILES) -.tmp/docs/%.rs: src/%.rs Makefile dup-unimpl.sed +.tmp/docs/%.rs: src/%.rs Makefile pycco-rs dup-unimpl.sed @mkdir -p .tmp/docs @echo "$< -> $@" @# sed-fu: remove the "@" from "//@", and remove trailing "/*@*/", replace lines ending in "/*@@*/" by "unimplemented!()". @# Also coalesce multiple adjacent such lines to one. @sed 's|^\(\s*//\)@|\1|;s|\s*/\*@\*/$$||;s|\(\s*\)\S.*/\*@@\*/|\1unimplemented!()|' $< | sed -f dup-unimpl.sed > $@ -docs/%.html: pycco-rs .tmp/docs/%.rs +docs/%.html: .tmp/docs/%.rs @./pycco-rs $< ## Workspace