diff --git a/example/Makefile b/example/Makefile
index e6bfe85d04779a8b26ab11c3a45014008ef80580..ed56104e28b1bec200ab7126e317e505ce6e1e73 100644
--- a/example/Makefile
+++ b/example/Makefile
@@ -14,8 +14,8 @@ else
 endif
 
 
-$(TARGET): main.cpp
-	g++ $(CXXFLAGS) $(LDFLAGS) -o $(TARGET) main.cpp
+$(TARGET): main.cpp Makefile
+	g++ $(CXXFLAGS) main.cpp $(LDFLAGS) -o $(TARGET)
 
 clean:
 	rm -f $(TARGET)