diff --git a/.gitignore b/.gitignore
index b3f3b78a40122858358e5f385b5011cbb4fb1f97..f32722697ba7b4bdea39dc723724f1978c728072 100644
--- a/.gitignore
+++ b/.gitignore
@@ -30,6 +30,12 @@ lnInclude
 # linux build folder(s) - anywhere
 linux*Gcc*
 
+# reinstate wmake/rules that look like build folders
+!wmake/rules/linux*
+# but do ignore the derived files in there
+wmake/rules/linux*/dirToString
+wmake/rules/linux*/wmkdep
+
 # doxygen generated documentation
 doc/[Dd]oxygen/html
 doc/[Dd]oxygen/latex