[lug] OT: More Makefile

Tom Tromey tromey at redhat.com
Tue Apr 30 11:18:28 MDT 2002


>>>>> ">" == D Stimits <stimits at idcomm.com> writes:

>> What is a good modular way to conditionally include a second
>> Makefile inside of a main Makefile if and only if the second
>> Makefile is present?

You can use `-include' to include a Makefile iff it exists.
That may not do what you want, though.  A lot depends on the
particular case.

Tom



More information about the LUG mailing list