within the "back tick" shell operators like TARGETDIR=`dirname $1`. The "back tick" operators are equiv... . This is what it all means:
Given:
foo=/tmp/my.dir/filename.tar.gz
We can use these expressions:
path = ${foo%/*}
To get: /tmp/my.dir (like dirname)
file = ${foo##*/}
To get: file... ch stuff in a Makefile, with GNU make:
top_srcdir = ...
builddir = ...
BASHPROG