chiark / gitweb /
make (just) shapelib docs if you ask for shapelib
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 12 Jan 2021 23:24:16 +0000 (23:24 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 12 Jan 2021 23:24:16 +0000 (23:24 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Makefile

index ed516434be073bba1b8665d49c19ec41e1aef03d..7a94a56ffd6a910ff86cdb213d69fbbae3e520c2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ src=.
 default: all check doc
 all: debug
 everything: debug doc release check bundled-sources
-shapelib: templates/shapelib.html
+shapelib: templates/shapelib.html stamp/cargo.doc-otter-only
 
 #---------- funky macros etc. ----------
 
@@ -169,6 +169,10 @@ stamp/cargo.doc: $(call rsrcs,.)
        $(CARGO) doc --workspace 2>&1 | egrep -vf .cargo-doc-suppress-errors
        $(stamp)
 
+stamp/cargo.doc-otter-only: $(call rsrcs,.)
+       $(CARGO) doc -p otter --no-deps
+       $(stamp)
+
 $(addprefix stamp/cargo.wasm-,$(DR)):: \
 stamp/cargo.wasm-%: $(call rsrcs, zcoord wasm Cargo.*)
        $(CARGO) build --target $(WASM) -p otter-wasm $(call cr,$*)