The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Gani Network Driver Won't Install - make: Fatal error: Don't know how to make targ... Bradj47 SUN Solaris 1 08-17-2009 01:46 AM
Paste content of a file to another file and make it as columned kingpeejay Shell Programming and Scripting 6 06-20-2009 06:40 PM
compare two files and make 1st file same as 2nd file pradeepreddy Shell Programming and Scripting 6 08-22-2008 07:53 AM
make file mxms755 UNIX for Dummies Questions & Answers 1 05-09-2006 10:38 AM
about make file kumar UNIX for Dummies Questions & Answers 4 06-30-2005 10:03 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-17-2009
alex_5161 alex_5161 is offline
Registered User
  
 

Join Date: Jan 2007
Location: Detroit
Posts: 124
makeutility: how to get the make-file name inside of the make-file?

How I can get the current make-file name in a make-file

So, if I run make with specified file:
Code:
make -f target.mak

is it possible to have the 'target' inside of the that 'target.mak' from the file name?
  #2 (permalink)  
Old 09-17-2009
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,972
MAKEFILE_LIST may be what you're looking for.
  #3 (permalink)  
Old 09-17-2009
alex_5161 alex_5161 is offline
Registered User
  
 

Join Date: Jan 2007
Location: Detroit
Posts: 124
Thank you, it is applied, at least I get an idea, how 'make' vorks with variable. (It seems, our system uses not GNU 'make'.)
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:57 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0