Next Question
RSS
Are you looking for your lower level makefile to behave differently depending on what the top-level target was? If so, I think you'd have to have the top-level make files export the target name into an environment variable and have your makefile read that (and check $(MAKELEVEL), too, if you're using gnumake).
Permalink | Report
abbotofunr...
Answered Question
February 18, 2009 12:35 AM
How do I find the original target in a makefile?
My makefile can be invoked by any one of many top level makefiles. Some of the top level makefiles use a default target of 'lib', or 'releaselib', or 'debuglib'. When my makefile is invoked, I just know that 'lib' is a prerequisite of something, but I would like to be able to figure out the top-level target of the dependency tree.
Interesting Question?
Yes (0)
No (0)
- In Programming |
- |
- Report |
-
Share
RSS
Best Answer Chosen by Asker
| February 20, 2009 01:38 AM |
Permalink | Report
abbotofunr...
February 20, 2009 01:42 AM
I should have said that answer assumes you are calling make with $(MAKE) or something. It doesn't help if your top-level make file is getting the lower-level one through an include.
Tip abbotofunreason for this comment
Report
Answer this Question
Related Questions
How do I find out if a girl I'm interested in is single? and how to initiate a friend...
How would you fix the ever increasing debt thats swallowing American innovation and t...
I came across a firefox plugin sometime ago that allowed the user to re-format a page...
Where can I find a list of EPC contracting companies segregated by country?
How would you fix the ever increasing debt thats swallowing American innovation and t...
I came across a firefox plugin sometime ago that allowed the user to re-format a page...
Where can I find a list of EPC contracting companies segregated by country?
Ask a Question
Buy Mahalo Dollars with Credit Card or PayPal
Top Members
Most Popular Tags
Categories
- Anonymous
- Arts & Design
- Beauty & Style
- Books & Authors
- Business
- Cars & Transportation
- Consumer Electronics
- Coupons Deals
- Education
- Entertainment
- Environment
- Fitness
- Food & Drink
- From Email
- From Iphone
- From Twitter
- Health
- History
- Hobbies
- Home & Garden
- How Tos
- Humor
- Jobs
- Legal
- Local
- Love & Relationships
- Mahalo Answers Community
- Money
- Music
- News
- NSFW
- Parenting
- Pets
- Science & Mathematics
- Services
- Shopping
- Social Science
- Society & Culture
- Sports
- Technology & Internet
- Travel
- Video Games
Welcome New Members
- smallbizlaw, November 10, 2009 10:28 PM
- jpknox, November 10, 2009 10:16 PM
- tgindrup, November 10, 2009 10:15 PM
- cristian, November 10, 2009 10:11 PM
- terraprima, November 10, 2009 09:36 PM
Mahalo Dollars are the currency of Mahalo Answers.
Each Mahalo Dollar costs $1.
Once you earn more than 40 Mahalo Dollars, you can request to be paid via PayPal. Each Mahalo Dollar is currently worth $0.75 when paid out via PayPal. Learn More