]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doc: Makefile.am - Fix multiline shell snippets
authorMartti Rannanjärvi <martti.rannanjarvi@open-xchange.com>
Wed, 28 Sep 2022 12:18:49 +0000 (15:18 +0300)
committerMartti Rannanjärvi <martti.rannanjarvi@open-xchange.com>
Wed, 28 Sep 2022 12:39:49 +0000 (15:39 +0300)
doc/Makefile.am

index 70f9ec4dd97351df62d280d89b74927943c177eb..cf7e716faac1f36f890248f5ccafa1c70b740ab1 100644 (file)
@@ -55,11 +55,13 @@ else # if HAVE_VENV
 
 html:
        if [ ! -e html/index.html ]; then \
-         echo "Building html documentation needs python installed";
+         echo "Building html documentation needs python installed"; \
        fi
 
 mans:
-       if [ ! -e man/dovecot.1 ]; then echo "Building manpages needs python installed"; fi
+       if [ ! -e man/dovecot.1 ]; then \
+         echo "Building manpages needs python installed"; \
+       fi
 
 endif # if HAVE_VENV
 
@@ -73,10 +75,11 @@ dist-hook:
        -rm -rf $(distdir)/html/objects.inv
        -rm -rf $(distdir)/man/.doctrees
 
-install-data-local:
-       if [ ! -e html/index.html ]; then $(MAKE) html; fi
-       $(MKDIR_P) "$(DESTDIR)$(docdir)"
-       cp -nrf html "$(DESTDIR)$(docdir)"
+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"