From c4734bbb81b95e7ebb0d30a84acfea475214abc0 Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Thu, 22 May 2014 10:28:44 -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 5836dc6..702f15b 100644 --- a/Makefile.in +++ b/Makefile.in @@ -6,6 +6,7 @@ CXXFLAGS ?= AR ?= ar RUSTC ?= rustc RUSTFLAGS += -L . -L ../libhubbub -L ../../libparserutils/libparserutils +EXT_DEPS ?= RUST_SRC=$(shell find $(VPATH)/. -type f -name '*.rs') @@ -15,7 +16,7 @@ all: librusthubbub.dummy %.o: %.c $(CC) $< -o $@ -c $(CFLAGS) -librusthubbub.dummy: hubbub.rc $(RUST_SRC) +librusthubbub.dummy: hubbub.rc $(RUST_SRC) $(EXT_DEPS) $(RUSTC) $(RUSTFLAGS) $< --out-dir . touch $@