makefile

package
v0.0.0-...-a27e3f8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	Cmd    string
	Equals string
}

Check is a version check

type Makefile

type Makefile struct {
	Checks    []Check
	Includes  []include
	Overrides []override

	FullPath string
}

Makefile is a lightly-parsed Makefile

func Parse

func Parse(path string) (*Makefile, error)

Parse reads and parses the Makefile at the given path

func (*Makefile) BuildAll

func (m *Makefile) BuildAll() error

BuildAll sequentially runs each of the project components' build targets

func (*Makefile) CleanAll

func (m *Makefile) CleanAll() error

CleanAll sequentially runs each of the project components' clean targets

func (*Makefile) ContainsOverride

func (m *Makefile) ContainsOverride(component, target string) bool

ContainsOverride returns true if the main.mk contains an overridden target for the given component

func (*Makefile) RunAll

func (m *Makefile) RunAll() error

RunAll runs all of the project components

func (*Makefile) TestAll

func (m *Makefile) TestAll() error

TestAll sequentially runs each of the project components' test targets

func (*Makefile) TestChecks

func (m *Makefile) TestChecks() error

TestChecks runs each defined Check and returns an error if any fail

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL