The $$(dirname) syntax doesn't seem to work at all on Solaris. Changing it to calling `dirname $$f` makes it work properly, and is probably more portable.
Created attachment 11405 [details] [review] patch fixing Makefile to work on Solaris
Patch commited, thanks
*** Bug 12309 has been marked as a duplicate of this bug. ***
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.