help-make
[Top][All Lists]
Advanced

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

Re: Question regarding conditions use within a target rule


From: Harvey Chapman
Subject: Re: Question regarding conditions use within a target rule
Date: Fri, 5 Mar 2010 01:36:39 -0500

On Mar 4, 2010, at 9:13 PM, Rick Flower wrote:

> %.o : %.cc
>       $(target_gpp) -MMD $(GPPFLAGS) \
>               $(and $(findstring
> "COVERAGE_ON",${extra_define}),"1",${COVERAGE_FLAGS}) \
>               -c $< -o $@

It worked for me when I got rid of the double quotes around COVERAGE_ON as it 
was trying to find the double quotes in ${extra_define}, too.

Using your original makefile, try this:
make extra_define=-D\"COVERAGE_ON\" clean all

Harvey

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

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