Feb-22-2019, 03:09 PM
I'm going to go ahead and post this here since there is so little on the internet about making python makefiles. This is what I used (and it works):
PY=python3 (this is my python version)
FILES (this is my python file. I only had one)
All: (this is the main part of it which grabs the python version, directory location, and filename and uses it alongside another command $$1 which works with another file to feed input from .txt files as arguments into the program.)
PY=python3 ZIP=abacmonitor.zip MAIN=main DIR=$(PWD) .SUFFIXES: .py FILES = \ abacmonitor.py All: echo " $(PY) $(DIR)/$(FILES) " \"'$$1'\" > abacmonitor chmod 777 abacmonitorA little explaination:
PY=python3 (this is my python version)
FILES (this is my python file. I only had one)
All: (this is the main part of it which grabs the python version, directory location, and filename and uses it alongside another command $$1 which works with another file to feed input from .txt files as arguments into the program.)