I just learned that if you want to use a dollar sign inside a Makefile you need to escape
$ with an extra
$, so double it. Otherwise
make will think that you are accessing a make variable, not a shell one.
#!/bin/bash for i in *; do echo "i=$i"; done
#!make my-files: for i in *; do echo "i=$$i"; done
Here’s a referenceTweet