2023-12-29 22:54:46 +08:00
|
|
|
SOURCE := $(shell pwd)/src/scripts
|
2023-12-03 17:08:00 +08:00
|
|
|
|
2023-12-29 22:54:46 +08:00
|
|
|
.PHONY: all clear run debug config
|
|
|
|
|
|
|
|
all: config
|
2023-12-03 17:08:00 +08:00
|
|
|
@make -C src all --no-print-directory
|
|
|
|
|
2023-12-29 22:54:46 +08:00
|
|
|
clear: config
|
2023-12-03 17:08:00 +08:00
|
|
|
@make -C src clear --no-print-directory
|
|
|
|
|
2023-12-29 22:54:46 +08:00
|
|
|
config:
|
|
|
|
@if [ "${shell uname -s}" != "Linux" ]; then \
|
|
|
|
echo -e "\e[1;33mMetaverse\e[0m must build under \e[1;35mLinux\e[0m or itself."; \
|
|
|
|
exit -1; \
|
|
|
|
fi
|
|
|
|
@if [ -f "metaverse_kernel" ]; then \
|
|
|
|
echo; \
|
|
|
|
else \
|
|
|
|
touch metaverse_kernel; \
|
|
|
|
"${SOURCE}/depcheck"; \
|
|
|
|
fi
|