Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Filenames = []string{"GNUmakefile", "makefile", "Makefile"}
Filenames is ordered list of makefile names
View Source
var HelpLineRegexp = regexp.MustCompile(`(?m)^([\w-]+):[\t ]*([^#\n]+)?[\t ]*(#[\t ]*(.*))?$`)
HelpLineRegexp is the regexp to catch target lines
View Source
var IncludedRegexp = regexp.MustCompile(`(?m)^-?include\s+(.*)$`)
IncludedRegexp is the regexp to catch included makefiles
Functions ¶
func ExpandUserHome ¶
ExpandUserHome expand path starting with "~/": - path: the path to expand Return: expanded path
func FileExists ¶
FileExists tells if given file exists: - file: the name of the file to test Return: a boolean that tells if file exists
func FindMakefile ¶
func FindMakefile() string
FindMakefile looks for makefile in current directory Return: found makefile name
func IncludedFiles ¶
IncludedFiles extracts included makefiles - source: makefile source Return: included makefiles
Types ¶
type HelpLineSorter ¶
type HelpLineSorter []HelpLine
HelpLineSorter sorts HelpLine by name
func (HelpLineSorter) Len ¶
func (a HelpLineSorter) Len() int
func (HelpLineSorter) Less ¶
func (a HelpLineSorter) Less(i, j int) bool
func (HelpLineSorter) Swap ¶
func (a HelpLineSorter) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.