+$(DEPS):
+ @echo -n "checking $@ .... "
+ @if which $@ > /dev/null; then \
+ echo "ok";\
+ else\
+ echo "failed" && exit 1;\
+ fi
+
+check-cc:
+ @echo -n "checking target i686-elf.... "
+ @test "`i686-elf-gcc -dumpmachine`" = "i686-elf" && echo ok || (echo "failed" && exit 1)
+
+check: $(DEPS) check-cc
+