mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
Rebuild when any of the Rust files change
This commit is contained 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user