help-make
[Top][All Lists]
Advanced

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

Re: How to do conditional include


From: Paul Smith
Subject: Re: How to do conditional include
Date: Tue, 22 Jul 2008 22:27:38 -0400

On Tue, 2008-07-22 at 20:35 -0500, Peng Yu wrote:
> I want to include a file only once use the technique that is commonly
> used in any C++ include files, such as
> 
> #ifndef FILENAME_H
> #define FILENAME_H
> 
> #endif
> 
> Could you let me know how to do the similar thing in gnu make?

        ifndef FILENAME_MK
        FILENAME_MK := 1
        
        endif

See the GNU make manual.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.us
 "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]