I have a python script which I call from the terminal like:
python myscript.py arg1 arg2 arg3
Now I want to create a Makefile which will allow calling
./myscript arg1 arg2 arg3
to do the same as the first command, but I'm not sure how to do this (mostly because of the additional command line args). How do I write this Makefile?
chmodor make a bash file with the contents ofpython FILENAME.py $1 $2 $3. Now you can run./myscript arg1 arg2 arg3and it will runpython FILENAME.py arg1 arg2 arg3. Now you just do a "make file" within python.