endef
endif
-targets = all clean depend realclean tags install autodoc autodoc_xref autodoc_html dist distrib
+targets = all clean depend realclean tags install autodoc autodoc_xref autodoc_html dist distrib install_headers install_libs
etags -C $^
# installation
-install: subdir_install local_install
-local_install: $(INCLUDEDIR) $(LIBDIR)
+install: $(INCLUDEDIR) install_headers $(LIBDIR) install_libs
+
+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)
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)
endif
+
$(LIBDIR): $(LIBDIR)
mkdir -p $@