From f3100a33dd33968ef339c587589f672bbf4f9529 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 12 Jan 2021 21:17:04 +0000 Subject: [PATCH] Add-hoc rule for binaries (which does not depend on stamp files) Signed-off-by: Ian Jackson --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 $@ -- 2.30.2