I am working on a class project that requires a makefile and needs to parse input below as an example make myapp arg1 arg2 arg3 arg4....
So I create a myapp.py
import sys
program_name = sys.argv[0]
arguments = sys.argv[1:]
count = len(arguments)
for x in sys.argv:
print("Argument: ", x)
I create a Makefile
all:
alias testapp="python3 myapp.py"
Doing this it should allow me to write $ testapp arg1 arg2 arg3... If I manually input the alias statement into the terminal it works correctly, but when run in a Makefile, it doesn't work for me. Any ideas on a workaround for this? thank you in advance