[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: user-defined function in make file
From: |
Paul D. Smith |
Subject: |
Re: user-defined function in make file |
Date: |
Fri, 31 Jan 2003 09:31:46 -0500 |
%% "Ashish Bajpai (DS/ESQ2)" <address@hidden> writes:
ab> I want to write my own function which accepts parameters inside
ab> the make file. What I have seen is that the in-built functions can
ab> be called but have not encountered any example where the
ab> user-defined functions are defined and used.
ab> I also read somewhere that we can create our own functions by
ab> using the call built-in function. Can anyone help me out with
ab> this?
Both of these are the same thing: user defined functions are invoked
through $(call ...).
See the GNU make manual, section "The 'call' Function".
--
-------------------------------------------------------------------------------
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