From: Sami Kerola Date: Sun, 26 Feb 2012 21:45:40 +0000 (+0100) Subject: docs: do not overwrite ddate.1 manual X-Git-Tag: v2.22-rc1~739 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7aa8bdb50e49d18ad07d708a9ccfbf0ffbfaf612;p=thirdparty%2Futil-linux.git docs: do not overwrite ddate.1 manual The following warning meant either english manual page overwrote ru version, or otherway around. Neither way that not intented. This patch will change ru version of the manual page to be installed to /ru/man1 directory. man/ru/Makefile.am:4: warning: mandir was already defined in condition TRUE, which includes condition BUILD_DDATE ... configure.ac:1: ... `mandir' previously defined here Signed-off-by: Sami Kerola --- diff --git a/configure.ac b/configure.ac index 966e9da94d..8b8006ecd9 100644 --- a/configure.ac +++ b/configure.ac @@ -831,6 +831,8 @@ AC_ARG_ENABLE([ddate], ) UL_BUILD_INIT([ddate]) AM_CONDITIONAL(BUILD_DDATE, test "x$build_ddate" = xyes) +rumandir='${mandir}/ru/man1' +AC_SUBST([rumandir]) AC_ARG_ENABLE([agetty], diff --git a/man/ru/Makefile.am b/man/ru/Makefile.am index 31fafb9dd3..64e88fdde2 100644 --- a/man/ru/Makefile.am +++ b/man/ru/Makefile.am @@ -1,7 +1,6 @@ include $(top_srcdir)/config/include-Makefile.am if BUILD_DDATE -mandir = @mandir@/ru -dist_man_MANS = -dist_man_MANS += ddate.1 +ruman_DATA = ddate.1 +EXTRA_DIST = $(ruman_DATA) endif