aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/make.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-19 19:28:18 +0900
committerOphestra <cat@gensokyo.uk>2026-05-19 19:28:18 +0900
commit548c96c7ec4a8c7c5abb4df1dac3d4a8671e2171 (patch)
treea6f586def327ab9c434bd6ef3a083d3cc1605b88 /internal/rosa/make.go
parent6e8bfa6c4c963ff6c7d417a1cc703e4504e1fb9d (diff)
internal/rosa/package: migrate make
This also introduces the generic helper for unusual build scripts. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/make.go')
-rw-r--r--internal/rosa/make.go32
1 files changed, 2 insertions, 30 deletions
diff --git a/internal/rosa/make.go b/internal/rosa/make.go
index 5803150e..eb7d7016 100644
--- a/internal/rosa/make.go
+++ b/internal/rosa/make.go
@@ -3,38 +3,10 @@ package rosa
import (
"slices"
"strings"
-
- "hakurei.app/internal/pkg"
)
-func (t Toolchain) newMake() (pkg.Artifact, string) {
- const (
- version = "4.4.1"
- checksum = "YS_B07ZcAy9PbaK5_vKGj64SrxO2VMpnMKfc9I0Q9IC1rn0RwOH7802pJoj2Mq4a"
- )
- return t.New("make-"+version, TEarly, nil, nil, nil, `
-cd "$(mktemp -d)"
-/usr/src/make/configure \
- --prefix=/system \
- --build="${ROSA_TRIPLE}" \
- --disable-dependency-tracking
-./build.sh
-./make DESTDIR=/work install
-`, pkg.Path(AbsUsrSrc.Append("make"), false, newTar(
- "https://ftpmirror.gnu.org/gnu/make/make-"+version+".tar.gz",
- checksum,
- pkg.TarGzip,
- ))), version
-}
-func init() {
- native.mustRegister(Toolchain.newMake, &Metadata{
- Name: "make",
- Description: "a tool which controls the generation of executables and other non-source files",
- Website: "https://www.gnu.org/software/make/",
-
- ID: 1877,
- })
-}
+// Make is the build system used by [MakeHelper].
+var Make = H("make")
// MakeHelper is the [Make] build system helper.
type MakeHelper struct {