5 # FIXME: on windows `rustc --dep-info` produces Makefile dependency with
6 # windows native paths (e.g. `c:\path\to\libfoo.a`)
7 # but msys make seems to fail to recognize such paths, so test fails.
11 $(RUSTC) --emit dep-info,link --crate-type=lib $(TMPDIR)/lib.rs
13 touch $(TMPDIR)/foo.rs
15 $(MAKE) -drf Makefile.foo
19 $(MAKE) -drf Makefile.foo
20 rm $(TMPDIR)/done && exit 1 || exit 0
22 # When a source file is deleted `make` should still work
24 cp $(TMPDIR)/lib2.rs $(TMPDIR)/lib.rs
25 $(MAKE) -drf Makefile.foo