1
2test: foo
3	echo $(dir foo)
4	echo $(dir foo,bar)
5	echo $(dir .)
6	echo $(dir )
7	echo $(dir src/foo.c hacks)
8	echo $(dir hacks src/foo.c)
9	echo $(dir /)
10	echo $(dir /foo)
11
12foo:
13	mkdir foo bar
14