help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: non-mandatory makefile include


From: Rahul Jain
Subject: RE: non-mandatory makefile include
Date: Wed, 15 Oct 2003 19:05:32 -0400

Sorry, I forgot to elaborate that I don't want to force the user to add
options to the make command. Is there any simple way to do this or will I
need to add another makefile in between to call something like:
> make -include config.mk -f Makefile.real
?


-----Original Message-----
From: Paul D. Smith [mailto:address@hidden
Sent: Wednesday, October 15, 2003 6:57 PM
To: Rahul Jain
Cc: 'address@hidden'
Subject: Re: non-mandatory makefile include


%% Rahul Jain <address@hidden> writes:

  rj> I'd like to add an include line to a makefile that doesn't cause the
  rj> process to fail if the file does not exist. I'd like to not create a
  rj> blank file, if possible. Any sugggestions for acheiving this goal are
  rj> appreciated.

Try "-include".

See the GNU make manual.

-- 
----------------------------------------------------------------------------
---
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad
Scientist




reply via email to

[Prev in Thread] Current Thread [Next in Thread]