makefiles: fix osx after rule dependency