diff --git a/subdir.mak b/subdir.mak
index ee44855f2d6833690527611ef215f835f90b14a2..c9b99009cf3dea6dd061fd057508b0786aa12faa 100644
--- a/subdir.mak
+++ b/subdir.mak
@@ -70,7 +70,7 @@ install-lib$(NAME)-shared: $(SUBDIR)$(SLIBNAME)
 		$(LN_S) $(SLIBNAME_WITH_VERSION) $(SLIBNAME_WITH_MAJOR)
 	$(Q)cd "$(SHLIBDIR)" && \
 		$(LN_S) $(SLIBNAME_WITH_VERSION) $(SLIBNAME)
-	$$(SLIB_INSTALL_EXTRA_CMD)
+	$(SLIB_INSTALL_EXTRA_CMD)
 
 install-lib$(NAME)-static: MSG = $(LIBDIR)/$(LIBNAME)
 install-lib$(NAME)-shared: MSG = $(LIBDIR)/$(SLIBNAME)