-# usually install $(LIB_LIB) or $(OBJS)
-install : builddir recurse $(OBJS) $(LIB_LIB)
- @[ -d "$(topsrcdir)/$(installdir)" ] || $(MKDIR) "$(topsrcdir)/$(installdir)";
- @echo "[INSTALL] $(patsubst $(topsrcdir)/$(builddir)/%,%,$(TARGETS))";
- $(Q)$(CP) $(TARGETS) "$(topsrcdir)/$(installdir)"
+# usually install $(LIB_LIB) or $(OBJS), race condition in "[ -d x ] || mkdir x"
+install : recurse $(OBJS) $(LIB_LIB)
+ @$(MKDIR) "$(top_builddir)$(installdir)"
+ifndef SILENT
+ @echo "[INSTALL] $(patsubst $(top_builddir)$(builddir)/%,%,$(TARGETS))";
+endif
+ $(Q)$(CP) $(TARGETS) "$(top_builddir)$(installdir)"