This is the code for the makefile and 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:
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
-f file, --file=file, --makefile=FILE Use file as a makefile.
you probably want just make hello.py
This is the code for the makefile and 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:
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")
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.