To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 3545
3544  |  3546
Subject: 
Re: Editing Makefile (adding comman line arguements)
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Sun, 7 Dec 2003 02:23:22 GMT
Viewed: 
4280 times
  
In lugnet.robotics.rcx.legos, Michael Martelli wrote:
I am trying to edit Makefile in the main brickos dir so that I can access the
arguements on the command line when I enter "make _____" to compile the
directory.

I need to do so because I need to have a certain command execute when the
arguements are not equal to 1 of 3 things.

I know that cygwin uses a bash shell, and I have looked at various bash
scripting commands but none work.  I have tried $argv[1], $1, $*, $@... and
other variation of them (including sorrounding the variable names in '(' and
')'.

I am rather new to scripting, but have a pretty good understanding of it, does
anyone have any knowlegde of this issue?

Thanks
Mike

Mike,

You might start off by checking the manual for GNU Make at

http://www.gnu.org/software/make/manual/make.html

or just look within the various makefiles within the brickOS code.  Try
Makefile.commom at brickOS root.

Ed



Message has 1 Reply:
  Re: Editing Makefile (adding comman line arguements)
 
(...) Ed, Thanks for the reply, I will look at that manual, I never knew to look there. I bet it will help me out. Thanks Mike (21 years ago, 7-Dec-03, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  Editing Makefile (adding comman line arguements)
 
I am trying to edit Makefile in the main brickos dir so that I can access the arguements on the command line when I enter "make _____" to compile the directory. I need to do so because I need to have a certain command execute when the arguements are (...) (21 years ago, 6-Dec-03, to lugnet.robotics.rcx.legos)

3 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR