//\r
// regular expression for "#include ..." directive\r
// \r
- private static final Pattern incPattern = Pattern.compile("[\n\r]+[ \t#]*[ \t]*include[ \t]+[\"<]*([^\n\r\"<>]+)[>\"]*[\n\r]+");\r
+ private static final Pattern incPattern = Pattern.compile("[\n\r \t#]*include[ \t]+[\"<]*([^\n\r\"<>]+)[>\" \t]*");\r
\r
public MakeDeps() {\r
\r
while (!pendingFiles.empty()) {\r
String src = pendingFiles.pop();\r
File srcFile = new File(src);\r
- if (!srcFile.exists()) {\r
+ int fileLength = (int)srcFile.length();\r
+ if (!srcFile.exists() || fileLength == 0) {\r
continue;\r
}\r
//\r
FileInputStream fileReader = null;\r
BufferedInputStream bufReader = null;\r
String fileContent = "";\r
- int fileLength = (int)srcFile.length();\r
\r
try {\r
fileReader = new FileInputStream(srcFile);\r