summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common.mak10
1 files changed, 3 insertions, 7 deletions
diff --git a/common.mak b/common.mak
index 823cc8ef59..9030a6969f 100644
--- a/common.mak
+++ b/common.mak
@@ -58,16 +58,12 @@ clean::
distclean: clean
rm -f .depend
-ifeq ($(BUILD_SHARED),yes)
-INSTLIBTARGETS += install-lib-shared
-endif
-ifeq ($(BUILD_STATIC),yes)
-INSTLIBTARGETS += install-lib-static
-endif
+INSTALL_TARGETS-$(BUILD_SHARED) += install-lib-shared
+INSTALL_TARGETS-$(BUILD_STATIC) += install-lib-static
install: install-libs install-headers
-install-libs: $(INSTLIBTARGETS)
+install-libs: $(INSTALL_TARGETS-yes)
install-lib-shared: $(SLIBNAME)
install -d "$(SHLIBDIR)"