From 6c98d31523c66100e685d0a537fc02965b70d561 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 27 Mar 2012 13:45:52 -0700 Subject: [PATCH] Rebuild when any of the Rust files change --- Makefile.in | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile.in b/Makefile.in index 9b5bab3899d..ecc39c8c565 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,12 +1,14 @@ +VPATH=%VPATH% + RUSTC?=rustc RUSTFLAGS?= -VPATH=%VPATH% +RUST_SRC=$(shell find $(VPATH)/src -type f -name '*.rs') all: servo -servo: src/servo.rc - $(RUSTC) $(RUSTFLAGS) -o $@ $^ +servo: src/servo.rc $(RUST_SRC) + $(RUSTC) $(RUSTFLAGS) -o $@ $< .PHONY: clean