fix Makefile tasks dependencies
(cherry picked from commit 693e474)