More effort needs to be made to get the full doc build
portable across different "make" implementations.  I assume
BSD users don't want GNU make installed, at all...
---
 Documentation/include.mk | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Documentation/include.mk b/Documentation/include.mk
index 651fdf30..b5fe21da 100644
--- a/Documentation/include.mk
+++ b/Documentation/include.mk
@@ -81,10 +81,10 @@ install-man: man
        $(INSTALL) -d -m 755 $(DESTDIR)$(man5dir)
        $(INSTALL) -d -m 755 $(DESTDIR)$(man7dir)
        $(INSTALL) -d -m 755 $(DESTDIR)$(man8dir)
-       $(INSTALL) -m 644 $(man1) $(DESTDIR)$(man1dir)
-       $(INSTALL) -m 644 $(man5) $(DESTDIR)$(man5dir)
-       $(INSTALL) -m 644 $(man7) $(DESTDIR)$(man7dir)
-       $(INSTALL) -m 644 $(man8) $(DESTDIR)$(man8dir)
+       test -z "$(man1)" || $(INSTALL) -m 644 $(man1) $(DESTDIR)$(man1dir)
+       test -z "$(man5)" || $(INSTALL) -m 644 $(man5) $(DESTDIR)$(man5dir)
+       test -z "$(man7)" || $(INSTALL) -m 644 $(man7) $(DESTDIR)$(man7dir)
+       test -z "$(man8)" || $(INSTALL) -m 644 $(man8) $(DESTDIR)$(man8dir)
 
 doc_install :: install-man
 
--
unsubscribe: meta+unsubscr...@public-inbox.org
archive: https://public-inbox.org/meta/

Reply via email to