>$@
else
rm -f $@
- $(LD) $(LDFLAGS) -r -o $@ $^
+ $(LD) $(LDFLAGS) -r -o $@ $^
endif
clean: subdir_clean local_clean
install_headers: subdir_install_headers local_install_headers
local_install_headers:
ifneq ($(strip $(INSTALL_HEADERS)),)
- $(INSTALL) -m u+rw,a+r $(addprefix $(srcdir)/,$(INSTALL_HEADERS)) $(INCLUDEDIR)
+ $(INSTALL) -C -m u+rw,a+r $(addprefix $(srcdir)/,$(INSTALL_HEADERS)) $(INCLUDEDIR)
endif
install_libs: subdir_install_libs local_install_libs
local_install_libs:
ifneq ($(strip $(INSTALL_LIBS)),)
- $(INSTALL) -m u+rw,a+r $(addprefix $(topdir)/,$(INSTALL_LIBS)) $(LIBDIR)
+ $(INSTALL) -C -m u+rw,a+r $(addprefix $(topdir)/,$(INSTALL_LIBS)) $(LIBDIR)
endif
-$(LIBDIR): $(LIBDIR)
+$(LIBDIR):
mkdir -p $@
-$(INCLUDEDIR): $(INCLUDEDIR)
+$(INCLUDEDIR):
mkdir -p $@
# generated the directory where all the generated documentation is