views:

118

answers:

1

I've tried something like this:

VAR := $(echo \`find . -name ".txt"`)

but when I echo $VAR from inside a target, I get nothing...

+7  A: 

Try

VAR := $(shell find . -name "*.txt")
hlovdal
thanks, $(shell cmd) works better but I get weird results with: SO_PATH_LIBPREFIX := $(shell for f in find . -name "*"; do dn=$(dirname $f) done) as if $d and $f were not recognised
DavidM
Jonathan Leffler