Sources + Header Build

Added Source pulling via curl.
This commit is contained in:
cowmonk 2025-11-12 11:22:44 -07:00
parent 6110995cfb
commit bf93e7d6c5
7 changed files with 94 additions and 3 deletions

View file

@ -1,5 +1,33 @@
include config.mk
SOURCES_FILE=./sources.list
ARCH=$(shell uname -m)
FROOT="${ARCH}-musllvm"
all:
.PHONY:
pull:
@if [ ! -d ./sources ]; then \
echo "Sources Directory Not Found!"; \
mkdir -p ./sources; \
echo "Pulling Sources..."; \
xargs -a ${SOURCES_FILE} -n1 -P4 -- curl -L -S -O --output-dir ./sources || { echo "curl failed"; exit 1; }; \
echo "done"; \
else \
./scripts/check.sh; \
fi
build: init
./scripts/headers.sh
init:
@if [ ! -d ./build/${FROOT} ]; then \
echo "Making toolchain directory..."; \
mkdir -p ./build/${FROOT}; \
fi
clean:
rm -rf ./sources
rm -rf ./build
.PHONY: all pull build clean init