From fa1e3449c7579463d2845ba45874fdadd27fe759 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Mon, 5 Aug 2013 23:36:04 +0100 Subject: [PATCH] Fix mozilla/servo#670: build with different source and target dirs --- Makefile.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.in b/Makefile.in index cc6d89b4..99ec0a5b 100644 --- a/Makefile.in +++ b/Makefile.in @@ -7,8 +7,8 @@ AR ?= ar RUSTC ?= rustc RUSTFLAGS ?= -GENERATED_RUST_SRC=color_data.rs -RUST_SRC=$(shell find $(VPATH)/. -type f -name '*.rs') $(GENERATED_RUST_SRC) +COLOR_DATA_RS=$(VPATH)/color_data.rs +RUST_SRC=$(shell find $(VPATH)/. -type f -name '*.rs') $(COLOR_DATA_RS) .PHONY: all all: libcssparser.dummy @@ -33,5 +33,5 @@ clean: rm -f *.o *.a *.so *.dylib *.dll *.dummy *-test -color_data.rs: make_color_data.py +$(COLOR_DATA_RS): make_color_data.py python $< > $@