Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get ouput from shell script back into a makefile

I've tried something like this:

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

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

like image 238
dm76 Avatar asked May 18 '26 10:05

dm76


1 Answers

Try

VAR := $(shell find . -name "*.txt")
like image 165
hlovdal Avatar answered May 20 '26 02:05

hlovdal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!