diff --git a/config.mk b/config.mk
index d18ee5d68da80e9b333cf67975b5c6eac7e87a6a..5d4041ca7ff6aa4b7f800b42a58a2ce0e975da3a 100644
--- a/config.mk
+++ b/config.mk
@@ -64,7 +64,7 @@ CSRCS = ${shell find ./src -type f -name "*.c" -print}
 ASSRCS = ${shell find ./src -type f -name "*.s" -print}
 
 # Include path located from the top-level source directory
-INC_PATH = ${shell find . -type d -print}
+INC_PATH = ${shell find . -not -path "./.git/*" -not -path "./.git" -type d -print}
 
 # Library paths from the top-level source directory
 LIB_PATH =