[Top][All Lists]

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

include self generated makefile in one pass using eval

From: Tobias Contreras
Subject: include self generated makefile in one pass using eval
Date: Tue, 11 Jul 2006 14:22:11 -0400

Now using 3.8, how could I used $(eval) to force generate the defines1.mak file before it is to be included, so that it can change the generation of defines2.mak as seen below (normally this is done by 2 passes of the same makefile, but if it can be done in one pass that would be far superior)



           echo Generating $@

           echo DEFINES_1_INCLUDED = TRUE > defines1.mak


include defines1.mak


defines2.mak: defines1.mak

           echo Generating $@


           echo DEFINES_2_INCLUDED = TRUE > defines2.mak


           echo DEFINES_2_BAD = TRUE > defines2.mak



include defines2.mak


default: defines2.mak defines1.mak


           echo Test passed!!!


           echo Test failed. Boo.



Sorry for restating this question, I just have to know if there is a way around this, Thank you

Tobias Contreras

Coop Tool Developer


This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

reply via email to

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