mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 14:30:43 +00:00

Source-Repo: https://github.com/servo/servo Source-Revision: da19925c20f58657fcf33f61e0c99dd8988bf2ef
25 lines
363 B
Makefile
25 lines
363 B
Makefile
VPATH=%VPATH%
|
|
|
|
RUSTC?=rustc
|
|
RUSTFLAGS?=
|
|
|
|
RUST_SRC=$(shell find $(VPATH)/src -type f -name '*.rs')
|
|
|
|
.PHONY: all
|
|
all: servo
|
|
|
|
servo: \
|
|
src/servo.rc $(RUST_SRC)
|
|
$(RUSTC) $(RUSTFLAGS) -o $@ $<
|
|
|
|
servo-test: \
|
|
src/servo.rc $(RUST_SRC)
|
|
$(RUSTC) $(RUSTFLAGS) --test -o $@ $<
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f servo servo-test
|
|
|
|
.PHONY: test
|
|
test: servo-test
|
|
./servo-test
|