From e7af5df69b60e27cd972bf42b91a21f984ad262d Mon Sep 17 00:00:00 2001 From: nirenjan Date: Thu, 5 Aug 2021 10:35:31 -0700 Subject: [PATCH] Use automake rules to install man pages --- Makefile.am | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index d697046..d286c4b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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