Use automake rules to install man pages

reverse-scroll
nirenjan 2021-08-05 10:35:31 -07:00
parent 86960e7e20
commit e7af5df69b
1 changed files with 3 additions and 4 deletions

View File

@ -58,17 +58,16 @@ all-local: docs/.stamp
clean-local:
rm -rf $(top_builddir)/docs
man1_MANS = docs/man/man1/x52cli.1
$(man1_MANS): docs/.stamp
# Install Doxygen generated HTML documentation and manpages
install-data-local:
$(INSTALL) -d $(DESTDIR)$(docdir)
rsync -rlp $(top_builddir)/docs/html $(DESTDIR)$(docdir)
$(INSTALL) -d $(DESTDIR)$(mandir)/man1
$(INSTALL) docs/man/man1/x52cli.1 $(DESTDIR)$(mandir)/man1
uninstall-local:
rm -rf $(DESTDIR)$(docdir)
rm -rf $(DESTDIR)$(mandir)/man1/x52cli.1
endif