summaryrefslogtreecommitdiffstats
path: root/tests/ui/unused-crate-deps/test.mk
blob: 0b98b4e44fb2af83229800eecf21a772926bc5b6 (plain)
1
2
3
4
5
6
7
# Everyone uses make for building Rust

foo: bar.rlib
	$(RUSTC) --crate-type bin --extern bar=bar.rlib

%.rlib: %.rs
	$(RUSTC) --crate-type lib $<