I'm trying to run a command that is dependent on all files within a directory. I could do something like this:
But it would be much easier if I could do this (it doesn't work):
Is there a way to set a variable in a Makefile to the output of a shell command?
Code:
test : dir/* dir/dir2/* dir/dir3/* ... etc
run command
But it would be much easier if I could do this (it doesn't work):
Code:
files = `find dir/`
test : $(files)
run command
Is there a way to set a variable in a Makefile to the output of a shell command?