autotools

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package autotools wraps the classic configure/make/make-install workflow.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoTools

type AutoTools struct {
	// contains filtered or unexported fields
}

AutoTools drives Autotools-style builds.

func New

func New(sourceDir, buildDir, installDir string) *AutoTools

New returns a ready-to-use AutoTools.

func (*AutoTools) Build

func (a *AutoTools) Build(args ...string)

Build runs "make" with optional extra arguments.

func (*AutoTools) Configure

func (a *AutoTools) Configure(args ...string)

Configure runs the configure script from sourceDir in the build directory. --prefix is prepended automatically when installDir is set. Extra flags are appended after --prefix.

func (*AutoTools) Install

func (a *AutoTools) Install(args ...string)

Install runs "make install" with optional extra arguments appended.

func (*AutoTools) OutputDir

func (a *AutoTools) OutputDir() string

OutputDir returns installDir if set, otherwise buildDir.

func (*AutoTools) Source

func (a *AutoTools) Source(dir string)

Source overrides the source directory.

func (*AutoTools) Sysroot added in v0.3.4

func (a *AutoTools) Sysroot(root string)

Sysroot sets the target system root for the compiler and linker. Both compiler spellings are supplied so the same Formula works for generic and Apple targets.

func (*AutoTools) Use

func (a *AutoTools) Use(root string)

Use configures the process environment so that Autotools, compilers, and pkg-config find a non-system dependency installed at root.

Jump to

Keyboard shortcuts

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