From 30e956d7923fd1a1950e858c529e627eac29185d Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Thu, 22 May 2014 10:27:53 -0700 Subject: [PATCH] Rebuild when external dependencies change Depends on mozilla/servo#2472. --- Makefile.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 2f7112820..e97b50931 100644 --- a/Makefile.in +++ b/Makefile.in @@ -4,6 +4,7 @@ CXX ?= g++ RUSTC ?= rustc AR ?= ar RUSTFLAGS ?= +EXT_DEPS ?= CFLAGS += -fPIC ifeq ($(shell $(CXX) -v 2>&1 | grep -c 'clang version\|Apple.*clang'),1) @@ -15,7 +16,7 @@ RUST_SRC = $(shell find $(VPATH)/. -type f -name '*.rs') .PHONY: all all: libjs.dummy -libjs.dummy: js.rc $(RUST_SRC) libjsglue.a +libjs.dummy: js.rc $(RUST_SRC) libjsglue.a $(EXT_DEPS) $(RUSTC) $(RUSTFLAGS) $< --out-dir . touch $@