diff --git a/Makefile b/Makefile
index cbb06214dfeff5f775878741082607ff184a6a37..574b7227e82673ff6e7db031102b30dd75c46cc3 100644
--- a/Makefile
+++ b/Makefile
@@ -99,7 +99,7 @@ ffmpeg.o ffplay.o ffserver.o: version.h
 %.o: %.c
 	$(CC) $(CFLAGS) -c -o $@ $<
 
-videohook:
+videohook: .libs
 	$(MAKE) -C vhook all
 
 documentation: $(addprefix doc/, ffmpeg-doc.html faq.html ffserver-doc.html \