diff --git a/.gitignore b/.gitignore
index ebe5e91530f7e676712a5e174d59afbecb0f9a35..b3f3b78a40122858358e5f385b5011cbb4fb1f97 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,6 +16,7 @@
 *.la
 *.so
 *.jar
+lex.yy.c
 
 # Corefiles
 core
@@ -27,10 +28,7 @@ core
 lnInclude
 
 # linux build folder(s) - anywhere
-linux*Gcc*[SD]POpt*
-
-# reinstate wmake/rules that look like build folders
-!wmake/rules/linux*
+linux*Gcc*
 
 # doxygen generated documentation
 doc/[Dd]oxygen/html