Analysis output

Analysis output

by Juncheng Zhang -
Number of replies: 2

Hi, good evenining

As the assignment require the output to be a subdirectory, 

Can I modify the rule of analysis.out in Makefile to make the analysis.out in a subdirectory?  Cause currently when I do make analysis, it will generate the output in current dir

In reply to Juncheng Zhang

Re: Analysis output

by Ramses van Zon -
But then you'd need to modify the Makefile for every next job. You can run the job in a subdirectory and use the "-f" option of the make command to point to the Makefile to use, e.g. something like "make -f $HOME/assignment4/Makefile run" if "run" is the target that runs your command. The output would then go to the directory you are running in. But it is easier to just put the commands that need to be run in the job script, i.e., not to use make for running the analysis in the job.