2023-12-12 17:45:39 +00:00
|
|
|
export PLATFORM := linux/amd64
|
2023-12-10 18:05:50 +00:00
|
|
|
export BUILDER := $(shell which docker)
|
2024-01-29 00:11:17 +00:00
|
|
|
export REGISTRY := stagex
|
2024-01-30 00:23:48 +00:00
|
|
|
export NOCACHE ?= 0
|
2024-01-28 10:24:33 +00:00
|
|
|
export MIRRORS := \
|
2024-01-30 00:23:48 +00:00
|
|
|
git.distrust.co \
|
|
|
|
hub.docker.com
|
|
|
|
|
|
|
|
ifeq ($(NOCACHE), 1)
|
|
|
|
NOCACHE_FLAG=--no-cache
|
|
|
|
else
|
|
|
|
NOCACHE_FLAG=
|
|
|
|
endif
|
|
|
|
export NOCACHE_FLAG
|
2024-01-28 10:24:33 +00:00
|
|
|
|
2023-12-12 17:45:39 +00:00
|
|
|
clean_logs := $(shell rm *.log 2>&1 >/dev/null || :)
|
|
|
|
|
2023-12-18 04:05:16 +00:00
|
|
|
include src/macros.mk
|
|
|
|
include src/bootstrap/build.mk
|
|
|
|
include src/core/build.mk
|
2024-02-02 21:38:33 +00:00
|
|
|
include src/kernel/build.mk
|
2023-12-18 04:05:16 +00:00
|
|
|
include src/libs/build.mk
|
|
|
|
include src/tools/build.mk
|
|
|
|
|
2024-01-28 05:49:38 +00:00
|
|
|
compat:
|
|
|
|
./src/compat.sh
|
|
|
|
|
2023-12-12 17:45:39 +00:00
|
|
|
DEFAULT_GOAL := default
|
|
|
|
.PHONY: default
|
2024-01-28 05:49:38 +00:00
|
|
|
default: compat bootstrap core
|
2023-12-15 20:32:54 +00:00
|
|
|
|
2023-12-18 04:05:16 +00:00
|
|
|
out/graph.svg: Makefile
|
2023-12-15 20:32:54 +00:00
|
|
|
$(MAKE) -Bnd | make2graph | dot -Tsvg -o graph.svg
|