makefiles: fix the generate-link-tags