This repository has been archived on 2024-11-18. You can view files and clone it, but cannot push or open issues or pull requests.
kernel-dev-old/Makefile

28 lines
563 B
Makefile
Raw Normal View History

2023-12-29 22:54:46 +08:00
SOURCE := $(shell pwd)/src/scripts
2023-12-29 22:54:46 +08:00
.PHONY: all clear run debug config
all: config
@make -C src all --no-print-directory
2023-12-29 22:54:46 +08:00
clear: config
@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-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