Fix install error on macOS when doxygen is found

The `install` command on macOS does not support the `-D` flag. It is not
required anyway, since the directory components are created by the
previous line.

This commit also updates the options to rsync to not copy in 'archive'
mode. Because it is used in `make install`, it is likely to be run as
root, and therefore, the root user should own the files in the
destination directory.
pull/26/head
nirenjan 2020-08-07 22:57:58 -07:00
parent 53f9c33ffa
commit 4f39078998
1 changed files with 2 additions and 2 deletions

View File

@ -43,10 +43,10 @@ clean-local:
# Install Doxygen generated HTML documentation and manpages
install-data-local:
$(INSTALL) -d $(DESTDIR)$(docdir)
rsync -a $(top_builddir)/docs/html $(DESTDIR)$(docdir)
rsync -rlp $(top_builddir)/docs/html $(DESTDIR)$(docdir)
$(INSTALL) -d $(DESTDIR)$(mandir)/man1
$(INSTALL) -D docs/man/man1/x52cli.1 $(DESTDIR)$(mandir)/man1
$(INSTALL) docs/man/man1/x52cli.1 $(DESTDIR)$(mandir)/man1
uninstall-local:
rm -rf $(DESTDIR)$(docdir)