From 5cd3ac54cb1ab2bac27c7d566c81952cb1aa5e1f Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Thu, 29 Sep 2022 11:50:16 +0300 Subject: [PATCH] doc: Always install DOCDIRS Otherwise example-config is not installed. --- doc/Makefile.am | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/doc/Makefile.am b/doc/Makefile.am index cf7e716faa..cff22e325a 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -75,15 +75,6 @@ dist-hook: -rm -rf $(distdir)/html/objects.inv -rm -rf $(distdir)/man/.doctrees -install-data-local: html - if [ -e html/index.html ]; then \ - $(MKDIR_P) "$(DESTDIR)$(docdir)"; \ - cp -nrf html "$(DESTDIR)$(docdir)"; \ - fi - -uninstall-local: - -rm -rf "$(DESTDIR)$(docdir)/html" - clean-local: -rm -rf venv -rm -rf $(documentation_sources) @@ -98,6 +89,17 @@ maintainer-clean: distclean-local endif # if INSTALL_DOCS +install-data-local: + $(MKDIR_P) $(DESTDIR)$(docdir); \ + for dir in $(DOCDIRS); do \ + cp -nrf $$dir $(DESTDIR)$(docdir); \ + done + +uninstall-local: + -for dir in $(DOCDIRS); do \ + rm -rf $(DESTDIR)$(docdir)/$$dir; \ + done + doc_DATA = $(docfiles) EXTRA_DIST = \ -- 2.47.3