i'm fairly new to using Makefiles to write commands for me.
I have made a Makefile to run and format a Flask app. The contents are
run:
.\venv\Scripts\python.exe app.py
format:
prettier -w .\templates\
prettier -w .\static\
autopep8 --in-place --aggressive --aggressive .\app.py
make run
works as expected probably because I have the virutal environment in the same directory.
Running make format
❯ make format
prettier -w .\templates\
prettier -w .\static\
autopep8 --in-place --aggressive --aggressive .\app.py
[warn] Ignored unknown option --in-place.
[warn] Ignored unknown option --aggressive=.\app.py.
[error] No files matching the pattern were found: ".\templatesprettier".
[error] No files matching the pattern were found: ".\staticautopep8".
Makefile:4: recipe for target 'format' failed
make: *** [format] Error 2
But executing the contents of format
manually works perfectly fine. So I'm guessing it is some sort of issue from the makefile not having access to these global scrips?
How would I go about fixing this, and is there perhaps an alternative way I can do this (w/o makefile) which is better suited to my task