I have a tool with 5 python scripts say A.py, B.py, C.py, D.py and E.py. I have to run this program in Linux. A.py is the one program I run which imports other files and uses them. For running A.py, I use the command
$ python A.py
Until now the input and output paths are hardcoded in A.py. Now I am supposed to write a makefile with all the file structure and dependencies. This makefile should also include the command for executing python scrip A.py. The required input and output paths has to be understood when
make makefile command is invoked and the tool should start running. How to do this?
The makefile should be something like this holding all these details.
INPUT_PATH = list of all input paths FILES = list of .c files located in the above specified paths OUTPUT_PATH = output path where generated file has to be stored command to execute python scrip: A.py inputpath+filename outputpath
so whenever there a new input .c files, they will be added to the list in makefile. Any sample makefile of this kind that you could suggest?