[英]I'm getting an error when running make -f hello.py. It says " hello.py:1: *** missing separator. Stop. "
This is the code for the makefile and hello.py.这是 makefile 和 hello.py 的代码。 I was reading similar questions to mine and I believe this is a problem with a tab somewhere but I'm unable to find it.
我正在阅读与我类似的问题,我相信这是某处选项卡的问题,但我找不到它。 Any help would be appreciated, Thank you!
任何帮助将不胜感激,谢谢!
Command line output:命令行 output:
hello.py:1: *** missing separator. Stop.
PYTHON = python3
VIEWER = less
.PHONY: clean run view other_run
run : hello.py
$(PYTHON) hello.py
other_run : hello.py
chmod u+x hello.py
./hello.py
view : hello.py
- $(VIEWER) hello.py
print("Hello, World!\n")
make -f hello.py
will treat hello.py
as a Makefile
which is almost certainly not what you want make -f hello.py
会将hello.py
视为Makefile
这几乎肯定不是你想要的
-f file, --file=file, --makefile=FILE Use file as a makefile.
you probably want just make hello.py
你可能只想
make hello.py
This is the code for the makefile and hello.py.这是 makefile 和 hello.py 的代码。 I was reading similar questions to mine and I believe this is a problem with a tab somewhere but I'm unable to find it.
我正在阅读与我类似的问题,我相信这是某个选项卡的问题,但我无法找到它。 Any help would be appreciated, Thank you!
任何帮助将不胜感激,谢谢!
Command line output:命令行 output:
hello.py:1: *** missing separator. Stop.
PYTHON = python3
VIEWER = less
.PHONY: clean run view other_run
run : hello.py
$(PYTHON) hello.py
other_run : hello.py
chmod u+x hello.py
./hello.py
view : hello.py
- $(VIEWER) hello.py
print("Hello, World!\n")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.