bug-make
[Top][All Lists]
Advanced

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

Target-specific variable in subdirectory problem


From: Benjamin Cama
Subject: Target-specific variable in subdirectory problem
Date: Wed, 02 Aug 2017 12:19:50 +0200

Hi,

I may be doing something wrong, but the following Makefile gives me
strange results: the target-specific variable does not apply when used
for a target in a subdirectory.

        test-%: FOO = BAR
        test-%:
                echo $(FOO)
        
E.g.:

        $ make test-stem
        echo BAR
        BAR
        $ make subdir/test-stem
        echo 
        

What am I doing wrong?

PS: please Cc me, I'm not subscribed. Thanks.
-- 
Benjamin Cama - Tél : 258




reply via email to

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