gecko-dev/servo/Makefile.in
Niko Matsakis b98c0e9eff servo: reorganize code, add tests for tree, add 'make test'
Source-Repo: https://github.com/servo/servo
Source-Revision: da19925c20f58657fcf33f61e0c99dd8988bf2ef
2012-03-27 16:22:29 -07:00

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