我正在按照教程制作一个简单的操作系统。本教程提供了一个makefile来定义构建内核的基础。我被指示在终端中运行make all
命令,但不断出现以下错误:
make: *** No rule to make target 'all'. Stop.
以下是本教程随附的makefile:
SDKDIR=./sdk
help:
@echo "Makefile for Building Dev Operating System."
@echo "Usage: make [ all | clean | help | build | run] "
@echo ""
@echo
all:
@echo "Building Kernel"
make -C ./kernel
@echo "Building SDK"
make -C ./sdk
@echo "Building Userland"
make -C ./userland
build:
zip -r devos-$(VERSION).zip ./
run:
@echo "Running Dev Operating System."
cd ./sdk && sudo bash ./diskimage.sh
cd ./sdk && ./qemu.sh
clean:
make -C ./kernel clean
make -C ./userland clean
我已经尝试cd到与makefile相同的目录中。我仍然得到相同的结果。 有人请帮助我解决此错误。谢谢您提前提供的所有帮助。