make: friendlier test target
diff --git a/Makefile b/Makefile
index d29d830..b73c990 100644
--- a/Makefile
+++ b/Makefile
@@ -49,8 +49,8 @@
 	cd programs && $(MAKE) clean && cd ..
 	cd tests    && $(MAKE) clean && cd ..
 
-check:
-	( cd tests && $(MAKE) check )
+check: lib
+	( cd tests && $(MAKE) && $(MAKE) check )
 
 apidoc:
 	mkdir -p apidoc