extending a variant's install?

Pasted by karlp on Mon Mar 15 14:58:26 2021 UTC as Makefile
define Package/libwebsockets/install
        $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libwebsockets.so* $(1)/usr/lib/
endef

Package/libwebsockets-mbedtls/install = $(Package/libwebsockets/install)
Package/libwebsockets-openssl/install = $(Package/libwebsockets/install)

define Package/libwebsockets-full/install
        # this doesn't work
        #$(call Package/libwebsockets/install,$$(1))
        # this doesn't work either?
        #$(call Package/libwebsockets/install,$(1))
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libwebsockets-evlib_uv.so* $(1)/usr/lib
endef