Friday, November 02, 2018

Issue with Makefile:6: *** missing separator.

Symptom:

  When you  run make , you got error  below
(oracle-svi5TViy)  $make
Makefile:6: *** missing separator.  Stop.

Makfile Details:
.PHONY: default install test

default: test

install:
        pipenv install --dev --skip-lock

test:
        PYTHONPATH=./src pytest

Solution:

   The Makefile  format uses <tab>  not <space> to indent. As they are invisble, easy to overlook.
To fix it, replace the <space> before pipenv and PYTHONPATH with <tab>

No comments: