code: func globGetMakeFunction(files []string, suffix string, mode globMode) string {
  	dirs := map[string]struct{}{}
  	for _, file := range files {
  		dirs[filepath.Dir(file)] = struct{}{}
  	}
  	makeWildcards := make([]string, 0, len(dirs))
  	wildcard := globGetMakeSnippet(mode)
  	for dir := range dirs {
  		str := replacePlaceholders(wildcard, "SUFFIX", suffix, "DIR", dir)
  		makeWildcards = append(makeWildcards, str)
  	}
  	return replacePlaceholders(globMakeFunction, "WILDCARDS", strings.Join(makeWildcards, " "))
  }
docs: // globGetMakeFunction returns a make snippet which calls wildcard
  // function in all directories where given files are and with a given
  // suffix.