diff --git a/Makefile.in b/Makefile.in index 4abd95da30..cdc707c267 100644 --- a/Makefile.in +++ b/Makefile.in @@ -135,6 +135,7 @@ install-bin: gnucash.${FLAVOR} install: $(INSTALL) -d ${GNC_BINDIR} ${GNC_LIBDIR} ${GNC_DOCDIR} ${GNC_SHAREDIR} + $(INSTALL) -d ${GNC_MANDIR}/man1 # Put these in the opposite order of precedence. Final bin/gnucash link will # point to the last one that exists... @@ -167,6 +168,9 @@ install: $(INSTALL_DATA) TODO ${GNC_DOCDIR} $(INSTALL_DATA) CHANGES ${GNC_DOCDIR} + $(INSTALL_DATA) man/gnucash.1 ${GNC_MANDIR}/man1 + $(INSTALL_DATA) man/gnc-prices.1 ${GNC_MANDIR}/man1 + # @mkdir -p $(prefix)/toolbar # $(INSTALL_DATA) toolbar/*.xpm $(prefix)/toolbar diff --git a/Makefile.init.in b/Makefile.init.in index 9bfadcd802..c2dea06a3d 100644 --- a/Makefile.init.in +++ b/Makefile.init.in @@ -46,6 +46,7 @@ GNC_BINDIR=@GNC_BINDIR@ GNC_LIBDIR=@GNC_LIBDIR@ GNC_CONFIGDIR=@GNC_CONFIGDIR@ GNC_SHAREDIR=@GNC_SHAREDIR@ +GNC_MANDIR=@GNC_MANDIR@ HAVE_PLOTUTILS=@HAVE_PLOTUTILS@ GLIB_CONFIG_BIN=@GLIB_CONFIG_BIN@ diff --git a/configure b/configure index 9c8b0017ef..8a7c3f7d04 100755 --- a/configure +++ b/configure @@ -4480,6 +4480,9 @@ else GNC_SHAREDIR=${datadir}/gnucash fi +GNC_MANDIR=${mandir} + + @@ -4735,6 +4738,7 @@ s%@GNC_BINDIR@%$GNC_BINDIR%g s%@GNC_LIBDIR@%$GNC_LIBDIR%g s%@GNC_CONFIGDIR@%$GNC_CONFIGDIR%g s%@GNC_SHAREDIR@%$GNC_SHAREDIR%g +s%@GNC_MANDIR@%$GNC_MANDIR%g s%@GNC_RUNTIME_PERLLIBPATH@%$GNC_RUNTIME_PERLLIBPATH%g s%@ABSOLUTE_TOP_SRCDIR@%$ABSOLUTE_TOP_SRCDIR%g diff --git a/configure.in b/configure.in index 35d01322ea..c19bbaaa1e 100644 --- a/configure.in +++ b/configure.in @@ -510,11 +510,14 @@ else GNC_SHAREDIR=${datadir}/gnucash fi +GNC_MANDIR=${mandir} + AC_SUBST(GNC_DOCDIR) AC_SUBST(GNC_BINDIR) AC_SUBST(GNC_LIBDIR) AC_SUBST(GNC_CONFIGDIR) AC_SUBST(GNC_SHAREDIR) +AC_SUBST(GNC_MANDIR) # HACK : inserts the path to gnucash.pm, which is used in the diff --git a/rpm/gnucash.spec b/rpm/gnucash.spec index 4a4f252b5c..a7fb2f19a8 100644 --- a/rpm/gnucash.spec +++ b/rpm/gnucash.spec @@ -49,3 +49,5 @@ rm -rf $RPM_BUILD_ROOT /usr/share/locale/fr/LC_MESSAGES/gnucash.mo /usr/share/locale/sv/LC_MESSAGES/gnucash.mo %doc /usr/doc/gnucash +%doc /usr/man/man1/gnucash.1 +%doc /usr/man/man1/gnc-prices.1