diff --git a/Makefile b/Makefile
index 0855a7ef5a3fb866c60def86ba2b58f5f2f24e69..cd8cbe3de0538b56de4803180b938b5f566f3eda 100644
--- a/Makefile
+++ b/Makefile
@@ -11,8 +11,9 @@ test: $(NAME)_test.o $(NAME).o
 	./test
 
 $(NAME).o: $(NAME).h
+$(NAME)_test.o: $(NAME).h
 
 .PHONY: clean
 
 clean:
-	rm -f *.o $(NAME) tests
+	rm -f *.o $(NAME) test