I have this line of bash script, which I'm trying to add to a makefile:
go_files=$(find . -name "*.go" -not -path "*/test1/*" -not -path "*/test2/*")
I've already tried these: (due to this stackoverflow answer)
for_on_go:
$(eval p := $(find . -name "*.go" -not -path "*/test1/*" -not -path "*/test2/*"))
@echo $(p)
and
for_on_go:
protos=$(find . -name "*.go" -not -path "*/test1/*" -not -path "*/test2/*"); \
echo $$protos; \
which both are not working or echoing the correct result. I also want to loop over these results after this.