help-make
[Top][All Lists]
Advanced

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

Re: Do you know why this wont work


From: Paul D. Smith
Subject: Re: Do you know why this wont work
Date: Thu, 2 Dec 2004 12:00:07 -0500

%% Christopher Mary A Contr AFRL/SNZW <address@hidden> writes:

  cm> MyTargets = `genTargetList`

This is a makefile, not a shell script.  Backquotes (``) don't do
anything special in a makefile (in most places).

  cm> $(MyTargets):

This simply creates a target with the literal name "`genTargetList`"

You need to use something like:

    MyTargets := $(shell genTargetList)

Note this is GNU make only, and not portable to other versions of make.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

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