]> git.lizzy.rs Git - rust.git/blob - tests/run-make-fulldeps/dep-info/Makefile
Auto merge of #101138 - Rejyr:diagnostic-migration-rustc-lint-pt2, r=davidtwco
[rust.git] / tests / run-make-fulldeps / dep-info / Makefile
1 include ../tools.mk
2
3 # ignore-windows
4 # ignore-freebsd
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.
8
9 all:
10         cp *.rs $(TMPDIR)
11         $(RUSTC) --emit dep-info,link --crate-type=lib $(TMPDIR)/lib.rs
12         sleep 2
13         touch $(TMPDIR)/foo.rs
14         -rm -f $(TMPDIR)/done
15         $(MAKE) -drf Makefile.foo
16         sleep 2
17         rm $(TMPDIR)/done
18         pwd
19         $(MAKE) -drf Makefile.foo
20         rm $(TMPDIR)/done && exit 1 || exit 0
21
22         # When a source file is deleted `make` should still work
23         rm $(TMPDIR)/bar.rs
24         cp $(TMPDIR)/lib2.rs $(TMPDIR)/lib.rs
25         $(MAKE) -drf Makefile.foo