diff --git a/src/maketools/plumedcheck b/src/maketools/plumedcheck index 64840035b14e2ffc1ac45368bbe701752bad7553..c95fb956c018b5d7d7e51f283925632e1de1dd1e 100755 --- a/src/maketools/plumedcheck +++ b/src/maketools/plumedcheck @@ -570,8 +570,8 @@ ENDFILE{ error("non_existing_cpp","file " file " is a header but there is no corresponding source"); } while((getline < cppfile)>=0){ - if(match($0,"^ *#include")){ - sub("^ *#include",""); + if(match($0,"^# *include")){ + sub("^# *include",""); # DOC: :non_included_h: # DOC: The source file corresponding to a header file (that is: with the same name) should include it as the first included file. # DOC: This is to make sure that all the header files that we install can be individually included and compiled.