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 <[EMAIL PROTECTED]> 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
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make