From: Ian Jackson Date: Tue, 12 Jan 2021 21:17:04 +0000 (+0000) Subject: Add-hoc rule for binaries (which does not depend on stamp files) X-Git-Tag: otter-0.3.0~51 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f3100a33dd33968ef339c587589f672bbf4f9529;p=otter.git Add-hoc rule for binaries (which does not depend on stamp files) Signed-off-by: Ian Jackson --- diff --git a/Makefile b/Makefile index ec047add..ed516434 100644 --- a/Makefile +++ b/Makefile @@ -154,6 +154,9 @@ stamp/cargo.%: $(call rsrcs,. ! -path './wasm/*') $(CARGO) build $(call cr,$*) -p otter -p otter-daemon $(stamp) +$(TARGET_DIR)/debug/%: $(call rsrcs, ! -path './wasm/*') + $(CARGO) build -p otter --bin $* + stamp/cargo.check: $(call rsrcs,.) $(CARGO) test --workspace $(stamp) @@ -269,9 +272,8 @@ $(addprefix templates/,$(TXTFILES)): templates/%: %.txt libraries: $(LIBRARY_FILES) -templates/shapelib.html: stamp/cargo.debug $(LIBRARY_FILES) - $(NAILING_CARGO) --just-run --- \ - $(abspath $(TARGET_DIR))/debug/otterlib \ +templates/shapelib.html: $(TARGET_DIR)/debug/otterlib $(LIBRARY_FILES) + $(NAILING_CARGO) --just-run --- $(abspath $<) \ --libs '$(addprefix $(PWD)/, $(addsuffix .toml, $(LIBRARIES)))' \ preview >$@.tmp && mv -f $@.tmp $@