I’m trying to write a Makefile for a python script, that will create a VMTranslator
executable file, which is supposed to get an input,
meaning this is how it is supposed to be done on shell commands:
1)make <==== should make the VMTranslator executable.
2)VMTranslator BasicTest.vm <==== the user is supposed to use it like this.
i have tried the following according to what i have found online:
#!/usr/local/bin/
python *$
but it is not working.
the files needed to be included are: codeWriter.py , vmTranslator.py , parser.py .
how can this be done?
The Python binary is an interpreter. It does not create stand-alone executables.
What you can do is to write a Python script that does what you want, as long as the Python executable is present the script can be made to run transparently:
Save that as
VMTranslator, and make the file executable (chmod +x VMTranslator).