aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.in6
-rwxr-xr-xbootstrap6
2 files changed, 7 insertions, 5 deletions
diff --git a/Makefile.in b/Makefile.in
index 5e99728..26ee59a 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -86,11 +86,7 @@ base:
mkdir -p base/usr/sbin/
mkdir -p base/boot/
-lib: lib/mlibc base/usr/lib/ld.so
-
-lib/mlibc:
- git clone https://github.com/sigsegv7/hyra-mlibc lib/mlibc
- cp builddeps/cross_file.txt lib/mlibc/
+lib: base/usr/lib/ld.so
.PHONY: run
run:
diff --git a/bootstrap b/bootstrap
index 9c4ad77..7c36c65 100755
--- a/bootstrap
+++ b/bootstrap
@@ -16,14 +16,20 @@ try_fetch() {
fetch() {
try_fetch "git clone https://github.com/limine-bootloader/limine.git --branch=v5.x-branch-binary --depth=1" "stand/limine"
+ try_fetch "git clone https://github.com/sigsegv7/hyra-mlibc lib/mlibc"
}
build_limine() {
make -C stand/limine/
}
+init_mlibc() {
+ cp builddeps/cross_file.txt lib/mlibc/
+}
+
build() {
build_limine
+ init_mlibc
}
echo "----------------------------------"