mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Rebuild when any of the Rust files change
This commit is contained in:
parent
2f2dcf0a99
commit
6c98d31523
1 changed files with 5 additions and 3 deletions
|
@ -1,12 +1,14 @@
|
||||||
|
VPATH=%VPATH%
|
||||||
|
|
||||||
RUSTC?=rustc
|
RUSTC?=rustc
|
||||||
RUSTFLAGS?=
|
RUSTFLAGS?=
|
||||||
|
|
||||||
VPATH=%VPATH%
|
RUST_SRC=$(shell find $(VPATH)/src -type f -name '*.rs')
|
||||||
|
|
||||||
all: servo
|
all: servo
|
||||||
|
|
||||||
servo: src/servo.rc
|
servo: src/servo.rc $(RUST_SRC)
|
||||||
$(RUSTC) $(RUSTFLAGS) -o $@ $^
|
$(RUSTC) $(RUSTFLAGS) -o $@ $<
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue