Remove unused rules from Makefiles.