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: Rick Flower
Subject: Re: Question regarding conditions use within a target rule
Date: Sat, 13 Mar 2010 23:18:50 -0800

On Mar 4, 2010, at 10:36 PM, Harvey Chapman wrote:

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

Sorry for the late reply.. You hit the nail on the head.. I was able to get things working
great!  Thanks again!

-- Rick


reply via email to

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