servo: Rebuild when any of the Rust files change

Source-Repo: https://github.com/servo/servo
Source-Revision: 6c98d31523c66100e685d0a537fc02965b70d561
This commit is contained in:
Patrick Walton 2012-03-27 13:45:52 -07:00
parent 28334ba653
commit 061196e31f

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