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)

###

defines1.mak:

           echo Generating $@

           echo DEFINES_1_INCLUDED = TRUE > defines1.mak

 

include defines1.mak

 

defines2.mak: defines1.mak

           echo Generating $@

ifdef DEFINES_1_INCLUDED

           echo DEFINES_2_INCLUDED = TRUE > defines2.mak

else

           echo DEFINES_2_BAD = TRUE > defines2.mak

endif

 

include defines2.mak

 

default: defines2.mak defines1.mak

ifdef DEFINES_2_INCLUDED

           echo Test passed!!!

else

           echo Test failed. Boo.

Endif

###

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

Reply via email to