Refactoring of makefiles: use implicit rules.