![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ifndef erros in makefile | firetree | UNIX and Linux Applications | 1 | 07-03-2009 02:25 AM |
| ifndef erros in makefile | firetree | OS X (Apple) | 0 | 07-02-2009 02:59 AM |
| Makefile problem - How to run module load in a Makefile | hernandinho | UNIX for Advanced & Expert Users | 2 | 04-13-2009 10:20 AM |
| about the makefile | ligerdave | High Level Programming | 2 | 01-31-2006 01:21 AM |
| checking for erros | chinog | UNIX for Dummies Questions & Answers | 1 | 10-27-2005 12:56 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
ifndef erros in makefile
I know if-condition clause is available in makefile.
But when I try to use it inside a macro definition, bugs come out! Any replies would be apreciated ! code: define child echo "child has one parameter: $1" ifndef $2 echo "but child can also see parent's second parameter: $2!" else echo "and child cannot see parent's second parameter !" endif endef erros: child has one parameter: one make: ifndef: Command not found make: *** [scoping_issue] Error 127 |
|
||||
|
3ks for your replies.
I'm using GNU make, under mac os x here is the whole codes: Code:
define parent echo "parent has two parameters: $1, $2" $(call child,$1) endef define child echo "child has one parameter: $1" ifndef $2 echo "but child can also see parent's second parameter: $2!" else echo "and child cannot see parent's second parameter !" endif endef scoping_issue: @$(call parent,one, two) Last edited by otheus; 07-06-2009 at 01:53 AM.. Reason: add code tags |
| Sponsored Links | ||
|
|