]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doc: Always install DOCDIRS
authorAki Tuomi <aki.tuomi@open-xchange.com>
Thu, 29 Sep 2022 08:50:16 +0000 (11:50 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Thu, 29 Sep 2022 08:52:39 +0000 (11:52 +0300)
Otherwise example-config is not installed.

doc/Makefile.am

index cf7e716faac1f36f890248f5ccafa1c70b740ab1..cff22e325a59a83b1c2635113325e9198b7a376b 100644 (file)
@@ -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 = \