Rebuild when any of the Rust files change

This commit is contained in:
Patrick Walton 2012-03-27 13:45:52 -07:00
parent 2f2dcf0a99
commit 6c98d31523

View file

@ -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