From 67bc47b6a8f70a3bf0091447c7709f52cf115319 Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Thu, 22 May 2014 09:13:22 -0700 Subject: [PATCH] Rebuild when external dependencies change Depends on mozilla/servo#2472. --- Makefile.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index b5c9d54..e744ef7 100644 --- a/Makefile.in +++ b/Makefile.in @@ -2,13 +2,14 @@ VPATH=%VPATH% RUSTC ?= rustc RUSTFLAGS ?= +EXT_DEPS ?= RUST_SRC=$(shell find $(VPATH)/. -type f -name '*.rs') .PHONY: all all: librust-layers.dummy -librust-layers.dummy: lib.rs $(RUST_SRC) +librust-layers.dummy: lib.rs $(RUST_SRC) $(EXT_DEPS) $(RUSTC) $(RUSTFLAGS) $< --out-dir . touch $@