Linux文件分割符问题,linux - Makefile错误-“ ***缺少分隔符”和“ ***配方在第一个目标之前开始” - 堆栈内存溢出...

我正在尝试为os161建立用户区。 在命令行中键入make时,出现以下错误:

Makefile 24:***缺少分隔符(您是指TAB而不是8个空格吗?)。 停止。

我在第24行检查了Makefile,并尝试将TAB添加到该行的开头,但这没有用,因为然后我收到另一个错误:

Makefile 24:***食谱在第一个目标之前开始。 停止。

这是完整的makefile供参考:

#

# Toplevel makefile for OS/161.

#

#

# Main rules:

# all (default): depend and compile system; install into staging area

# rebuild: likewise, but start with a clean slate.

# fullrebuild: likewise, but start with a very clean slate.

#

# What all does, in order:

# tools: depend and compile the tools used in build.

# includes: install header files.

# build: depend and compile the system.

#

# Other targets:

# depend: just update make dependency information.

# tags: generate/regenerate "tags" files.

# install: install into $(OSTREE).

# clean: remove generated files.

# distclean: remove all generated files.

#

TOP=.

.include "$(TOP)/mk/os161.config.mk"

all:; # make this first

MKDIRS=$(OSTREE)

.include "$(TOP)/mk/os161.mkdirs.mk"

all: tools .WAIT includes .WAIT build

rebuild:

$(MAKE) clean

$(MAKE) all

fullrebuild:

$(MAKE) distclean

$(MAKE) all

# currently no tools required, hence no tools/ dir or work to do

tools:

@true

build:

(cd userland && $(MAKE) build)

(cd man && $(MAKE) install-staging)

(cd testscripts && $(MAKE) build)

includes tags depend:

(cd kern && $(MAKE) $@)

(cd userland && $(MAKE) $@)

clean:

(cd kern && $(MAKE) $@)

(cd userland && $(MAKE) $@)

rm -rf $(INSTALLTOP)

distclean: clean

rm -rf $(WORKDIR)

install: $(OSTREE)

(cd $(INSTALLTOP) && tar -cf - .) | (cd $(OSTREE) && tar -xvf -)

.PHONY: all rebuild fullrebuild tools build includes tags depend

.PHONY: clean distclean

# old BSD name, same as distclean

cleandir: distclean

.PHONY: cleandir

该行的问题(24)为:

.include "$(TOP)/mk/os161.config.mk"

任何帮助,将不胜感激。 我检查了类似的makefile错误,但似乎找不到问题。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值