2025-10-25 16:23:17 -07:00
|
|
|
include config.mk
|
|
|
|
|
|
|
|
|
|
all:
|
|
|
|
|
|
2025-11-12 11:22:44 -07:00
|
|
|
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
|
2025-11-15 10:15:15 -07:00
|
|
|
./scripts/musl-cross.sh
|
2025-11-12 11:22:44 -07:00
|
|
|
|
|
|
|
|
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
|