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
|
|
|
run: config
|
2023-12-11 20:13:36 +08:00
|
|
|
@make -C test run --no-print-directory
|
2023-12-03 17:08:00 +08:00
|
|
|
|
2023-12-29 22:54:46 +08:00
|
|
|
debug: config
|
2023-12-11 20:13:36 +08:00
|
|
|
@make -C test debug --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
|