From 53b8f3e97e4aa5aee1331afc956fc482cd267f62 Mon Sep 17 00:00:00 2001 From: Jack Moffitt Date: Wed, 28 May 2014 17:31:28 -0600 Subject: [PATCH] Pass in EXT_DEPS for external dependency tracking. --- Makefile.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index f2adef5..24e135e 100644 --- a/Makefile.in +++ b/Makefile.in @@ -2,17 +2,18 @@ VPATH=%VPATH% RUSTC ?= rustc RUSTFLAGS ?= +EXT_DEPS ?= RUST_SRC=$(shell find $(VPATH)/. -type f -name '*.rs') .PHONY: all all: libio_surface.dummy -libio_surface.dummy: lib.rs $(RUST_SRC) +libio_surface.dummy: lib.rs $(RUST_SRC) $(EXT_DEPS) $(RUSTC) $(RUSTFLAGS) $< --out-dir . touch $@ -io_surface-test: lib.rs $(RUST_SRC) +io_surface-test: lib.rs $(RUST_SRC) $(EXT_DEPS) $(RUSTC) $(RUSTFLAGS) $< -o $@ --test .PHONY: check