def METHOD_NAME(self):
    # Cray compiler searches for module files with uppercase names by
    # default and with lowercase names when the '-ef' flag is specified.
    # To avoid warning messages when compiler user applications in both
    # cases, we create copies of all '*.mod' files in the prefix/include
    # with names in upper- and lowercase.
    if self.spec.compiler.name != "cce":
        return
    with working_dir(self.spec.prefix.include):
        for f in glob.glob("*.mod"):
            name, ext = os.path.splitext(f)
            try:
                # Create a copy with uppercase name:
                copyfile(f, name.upper() + ext)
            except Error:
                # Assume that the exception tells us that the file with
                # uppercase name already exists. Try to create a file with
                # lowercase name then:
                try:
                    copyfile(f, name.lower() + ext)
                except Error:
                    pass