From afde5f5b5db3ad5880b46cf7cf06adfe85629fac Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 8 Sep 2016 19:13:52 -0600 Subject: [PATCH] rebuild init on cargo file change --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index eadb0d5..0b0ba17 100644 --- a/Makefile +++ b/Makefile @@ -51,8 +51,8 @@ build/libcollections.rlib: rust/src/libcollections/lib.rs build/libcore.rlib bui mkdir -p build ./rustc.sh $(RUSTCFLAGS) -o $@ $< -build/libinit.a: init/src/*.rs - RUSTC="./rustc.sh" cargo rustc --manifest-path init/Cargo.toml $(CARGOFLAGS) -o $@ +build/libinit.a: init/Cargo.toml init/src/*.rs + RUSTC="./rustc.sh" cargo rustc --manifest-path $< $(CARGOFLAGS) -o $@ build/init: build/libinit.a $(LD) -e _start --gc-sections -o $@ $<