2013-12-11 14:08:23 -06:00
|
|
|
-include ../tools.mk
|
2013-12-22 14:37:33 -06:00
|
|
|
|
2014-04-27 02:52:36 -05:00
|
|
|
# FIXME: ignore freebsd/windows
|
|
|
|
# on windows `rustc --dep-info` produces Makefile dependency with
|
|
|
|
# windows native paths (e.g. `c:\path\to\libfoo.a`)
|
|
|
|
# but msys make seems to fail to recognize such paths, so test fails.
|
2014-04-03 15:12:19 -05:00
|
|
|
ifneq ($(shell uname),FreeBSD)
|
2014-04-27 02:52:36 -05:00
|
|
|
ifndef IS_WINDOWS
|
2013-12-11 14:08:23 -06:00
|
|
|
all:
|
2015-01-20 12:57:10 -06:00
|
|
|
$(RUSTC) --emit dep-info,link --crate-type=lib lib.rs
|
2014-04-03 15:12:19 -05:00
|
|
|
sleep 2
|
2013-12-11 14:08:23 -06:00
|
|
|
touch foo.rs
|
|
|
|
-rm -f $(TMPDIR)/done
|
2013-12-22 14:38:55 -06:00
|
|
|
$(MAKE) -drf Makefile.foo
|
2014-04-03 15:12:19 -05:00
|
|
|
sleep 2
|
2013-12-11 14:08:23 -06:00
|
|
|
rm $(TMPDIR)/done
|
|
|
|
pwd
|
2013-12-22 14:38:55 -06:00
|
|
|
$(MAKE) -drf Makefile.foo
|
2013-12-11 14:08:23 -06:00
|
|
|
rm $(TMPDIR)/done && exit 1 || exit 0
|
2014-04-03 15:12:19 -05:00
|
|
|
else
|
|
|
|
all:
|
|
|
|
|
|
|
|
endif
|
2014-04-27 02:52:36 -05:00
|
|
|
|
|
|
|
else
|
|
|
|
all:
|
|
|
|
|
|
|
|
endif
|