passing arguments to a Make file using perl script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rockzzz
    New Member
    • Aug 2015
    • 2

    passing arguments to a Make file using perl script

    Hi Guys
    I am a beginner to perl. i have a make file which takes arguments and creates a exe file but I wonder how could i pass arguments to the makefile

    I found a small snippet of code. could someone help me in explaining me how did it do


    Code:
      
           $gmakeopt;
           $outputdir .= "_$random_seed" if($random_seed ne "none");
               unless (-d $outputdir) {
    	   mkdir($outputdir, 0777);
        }
    
    	if($random_seed ne "none")
    	{
    		system "gmake RANDOM_SEED=$random_seed $gmakeopt";
    	}
    	else
    	{
            system "gmake $gmakeopt";
    	}
Working...