473,395 Members | 1,442 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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


Expand|Select|Wrap|Line Numbers
  1.  
  2.        $gmakeopt;
  3.        $outputdir .= "_$random_seed" if($random_seed ne "none");
  4.            unless (-d $outputdir) {
  5.        mkdir($outputdir, 0777);
  6.     }
  7.  
  8.     if($random_seed ne "none")
  9.     {
  10.         system "gmake RANDOM_SEED=$random_seed $gmakeopt";
  11.     }
  12.     else
  13.     {
  14.         system "gmake $gmakeopt";
  15.     }
  16.  
  17.  
Aug 14 '15 #1
0 2240

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: kelly | last post by:
Hi, I don't have a code to show you, what I need are references or algorithms so that I'm in a right track. By the way, thanks for introducing me the array or arrays. Now I can continue my...
4
by: kk5151 | last post by:
Hi, Would like to learn and know how to sort the ip address using perl script? For example: 172.27.32.200 172.19.32.100 10.1.1.60 192.20.30.133
4
by: jram01 | last post by:
Hi Folks, I am facing problem to to execute .sql command in sql prompt using perl script. I am able to connect sql promt using " my $odbcinput = "odbcinput.txt"; my...
5
by: leierwu | last post by:
1. I have a folder containing several files; 2. Now these files should be added a header with the file name in the first line; How can I complish this using perl script?
5
by: chitralaxman | last post by:
i am in need to run an .exe file from perl script and that exe file should accept an input from another file. please give me the solution to run an exe file from perl script
3
by: gajendra98 | last post by:
Hi I am working on windows .....IS it possible to block the remote computer python plug-ins using perl script...could some one tell me how to perform these operations.....Thanks
3
by: flow3rgirlz | last post by:
Hi all, I'm really new to Perl. I'm not sure where to post my topic as it between Perl and Visio. Anyway, I want to run a Visio macro automatically using Perl Script. $vis->Run($macro_to_run);...
1
by: sree ram | last post by:
code for getting maximum rows in excel sheet using perl script
8
by: siva12venu | last post by:
How to open vlc player using perl script Requirement:: open vlc player press (CTRL + "n") //It opens network stream enter url // In network stream page u have enter any url click play...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.