diff options
| author | ewy <ewy0@protonmail.com> | 2026-07-11 17:46:58 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-07-11 17:46:58 +0200 |
| commit | 4f1318697af67a19144d0ce8fe0a1ccf3a0f9c37 (patch) | |
| tree | 7eaa95d299af177120f74c98e3d4467d8f7743ac /runner | |
| parent | 2cd08464db8dac9672b63e02b4a5be8ee7f8cf8c (diff) | |
make makefiles case insensitive
Diffstat (limited to 'runner')
| -rw-r--r-- | runner/gnumake/make.go | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/runner/gnumake/make.go b/runner/gnumake/make.go index 1379f0e..91f48de 100644 --- a/runner/gnumake/make.go +++ b/runner/gnumake/make.go @@ -22,12 +22,10 @@ var Indexer = &gnumake{ files: make(map[string]string), } +// Makefiles is a list of potential makefile names var Makefiles = []string{ - "GNUmakefile", + "bsdmakefile", "gnumakefile", - "GNUMakefile", - "gnuMakefile", - "Makefile", "makefile", } @@ -62,7 +60,7 @@ func (m *gnumake) Index(path string, f fs.FS, _ []model.Runner) ([]model.Target, return ParseOutput(makefile), nil } -var makeRegex = regexp.MustCompile("(?m)^([a-zA-Z]*):((.*?)# (.*))?") +var makeRegex = regexp.MustCompile("(?m)^([a-zA-Z]*):(([ \t]*?)#(.*))?") func ParseOutput(input string) []model.Target { var targets []string |
